Forum Moderators: not2easy
#topMenuTab {
background: url("../images/menuTabLeft.jpg") left top no-repeat;
background: url("../images/menuTabRight.jpg") right top no-repeat;
background-color:#4c7d67;
}
<td width="175" height="30" id="topMenuTab">Sign up for the newsletter</td>
Any ideas?
If you're trying to achieve something like rounded corners on both side of an element of unpredicatble width, you should probably do something like use a list to mark up the menu [google.com] and put one side's background image on the <li>, and the other on the <a> (or, in the case of the example markup you posted, put one part of the background on the <td> and the other part on the <a>). Google css + "sliding doors" [google.com] for more information on this technique.
-B
With the width of the container fixed at 175px you might opt to put it all in one image fixed to that width.