Hi list, I have a bug where in IE7 the background of a LI is not appearing. The bug seems to be related to the fact that I have moved the anchor tags within using position: relative; because if I remove that piece of code the list appears almost as it should, only with the background image a little out of whack and the anchor tags in slightly the wrong position for my liking.
I can't think of another way to get the effect I want. I could get a similar effect using floats but I then couldn't have te list aligned in the centre like it is, Here is an image of the bug. If you want to see the whole page please e-mail me off-list. http://img261.imageshack.us/my.php?image=lirl6.gif And the relevant code: <ul> <li class="first"> <a href="#">1</a> </li> <li> <a href="#">2</a> </li> <li>Lorem ipsum dolor sit amet, consectetur</li> <li> <a href="#">3</a> </li> <li> <a href="#">4</a> </li> <li> <a href="#">5</a> </li> <li> <a href="#">6</a> </li> </ul> * { margin: 0; padding: 0; } a { text-decoration: none; } ul { color: #4D4A43; font-family: "Times New Roman", times, serif; font-size: 1.273em; /* 14px */ list-style: none; margin-left: -5px; padding-top: 4px; text-align: center; } li { background: url(../images/home/flipper_bg.gif) 0 4px no-repeat; display: inline; height: 16px; padding: 0 12px 0 17px; } li.first { background: transparent; } a { color: #616060; font-size: 1.357em; font-weight: normal; position: relative; top: 2px; } Also, if you add position: relative; to the UL IE6 will behave the same as IE7, which really doesn't help much. Thanks for your help, Blake ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
