Dears,
I have a table that has two columns. Each column has an image. I would like the images to exactly fits the <TD> i.e. no margin around the image. I tried to margin:0%; no help; padding:0%
Note: My code is Xhtml
HTML-TABLE
<table id="hdr" >
<tbody>
<tr>
<td class="rhdr"><img height="90" width="265"
src="../src/images/logo.png" alt="Logo" /></td>
<td class="lhdr"><img height="90" width="265"
src="../src/images/logo-bldg.png" alt="Image" /></td>
</tr>
</tbody>
</table>
CSS
table#hdr
{
border:1px solid black;
background-color: #12DEAD;
border-width:thin;
width:100%;
height:78px;
border-collapse:collapse;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0% 0% 0% 0%;
border-spacing:0% 0% 0% 0%;
}
td.rhdr
{
background-color: #12DEAD;
text-align:right;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0%;
border-spacing:0% 0% 0% 0%;
padding:0% 0% 0% 0%;
}
td.lhdr
{
background-color: #12DEAD;
text-align:left;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0%;
border-spacing:0% 0% 0% 0%;
}
I have a table that has two columns. Each column has an image. I would like the images to exactly fits the <TD> i.e. no margin around the image. I tried to margin:0%; no help; padding:0%
Note: My code is Xhtml
HTML-TABLE
<table id="hdr" >
<tbody>
<tr>
<td class="rhdr"><img height="90" width="265"
src="../src/images/logo.png" alt="Logo" /></td>
<td class="lhdr"><img height="90" width="265"
src="../src/images/logo-bldg.png" alt="Image" /></td>
</tr>
</tbody>
</table>
CSS
table#hdr
{
border:1px solid black;
background-color: #12DEAD;
border-width:thin;
width:100%;
height:78px;
border-collapse:collapse;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0% 0% 0% 0%;
border-spacing:0% 0% 0% 0%;
}
td.rhdr
{
background-color: #12DEAD;
text-align:right;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0%;
border-spacing:0% 0% 0% 0%;
padding:0% 0% 0% 0%;
}
td.lhdr
{
background-color: #12DEAD;
text-align:left;
margin-left:0%;
margin-right:0%;
margin-top:0%;
margin-bottom:0%;
padding:0%;
border-spacing:0% 0% 0% 0%;
}