I have created a basic HTML webpage with an image displayed as a header. However, I am encountering an issue where the image is not repeating.
When I specify the width
to be 100%
, the td (side
) disappears completely.
If I remove the width
attribute from basestrip
, the image only covers half of the screen area. My goal is to have the image cover the entire screen width while maintaining its specified height.
<table cellpadding="0" cellspacing="0">
<tr>
<td id="side" width="10px" height="25px"></td>
<td></td>
<td id="basestrip" width="100%" height="25px">
</td>
</tr>
</table>
Below is the CSS code:
#side {
background-color: #014160;
}
#basestrip {
background-image: url('../Images/topstripbg.png');
background-repeat: repeat-x;
}