jcombs_31 Posted October 31, 2006 Share Posted October 31, 2006 I can't seem to get a background for the numbering of an ordered list. Negative margins don't seem to work. Any trick to get a background image to display in the numbering?edit: Nevermind, found some trickery to get it the way I wanted. Quote Link to comment https://forums.phpfreaks.com/topic/25700-ordered-list/ Share on other sites More sharing options...
ToonMariner Posted October 31, 2006 Share Posted October 31, 2006 Whne you specify a background image I believe it overwrites the default (which would be the number!). So I am assuming you simply want a background behind the number itself.You need a margin to show the number (one case where IE got it right as FF uses the elements padding - or did do) so make sure you leave that there. Quote Link to comment https://forums.phpfreaks.com/topic/25700-ordered-list/#findComment-117289 Share on other sites More sharing options...
jcombs_31 Posted October 31, 2006 Author Share Posted October 31, 2006 list style and background are different properties. So no, background does not overwrite the number. But, the background is positioned under the text, not the number. What I ended up doing with positioning the link with a negative margin and put the background on that, and then adding the left padding to get the effect I wanted of the background only showing behind the number.The next problem is the lack of support for decimal-leading-zeros on ie and possibly other browsers. So, I might have to abandon the symantically correct ol and use an unordered list and add my own numbering. Quote Link to comment https://forums.phpfreaks.com/topic/25700-ordered-list/#findComment-117337 Share on other sites More sharing options...
jcombs_31 Posted October 31, 2006 Author Share Posted October 31, 2006 http://coralgladeshigh.com/v2/menu.phplittle experimenting I was doing Quote Link to comment https://forums.phpfreaks.com/topic/25700-ordered-list/#findComment-117389 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.