Forum Moderators: not2easy
.mn_box_hdr_l {
width: 6px;
background-image: url(http://www.example.com/images/mn_box_hdr_r.gif);
}
.mn_box_hdr_r {
width: 6px;
background-image: url(http://www.example.com/images/mn_box_hdr_r.gif);
}
And I am calling it like this:
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="mn_box_hdr_l"></td>
<td background="http://www.example.com/images/mn_box_hdr_bg.gif">Title goes here</td>
<td class="mn_box_hdr_r"></td>
</tr>
</table>
For some reason, the left and right cells do not show up. I could just add a spacer.gif in those two cells which will solve the problem, but I want to do it all in CSS.
Can anyone explain why the cells don't show up? I am using FireFox to view the site. I think IE shows the cells but they repeat the image and the width is greater than 6px.
Can anyone help?
Thanks in advance for your help!
Wes
CSS
.mn_box_hdr {
width:488px; /* The width of {(content area) - (left padding + right padding)}... */
background:transparent url(images/mn_box_hdr_bg.gif) no-repeat 0 0; /* The unsliced background image */
padding:0 6px; /* 6px each of space to the left and right of the content area... */
}
HTML
<h1 class="mn_box_hdr">Title goes here</h1>
There are a few things to notice about how I've altered your code:
-b
PS-repeat after me: "There is absolutely no reason ever to use a spacer gif again as long as I live..."
Thank you for your reply.
The problem is each box is a different size. That is why I sliced the image. This means it has two fixed sized edges and the middle is a background image that repeats.
If I have an unsliced image it will look different for each box.
Do you have any suggestions?
Thanks again for your help!
-b