| | |
List markers behind li background image in IE
Please support our HTML and CSS advertiser: 50% Off 6 Months Web Hosting from 1&1. The World's #1 Host!
![]() |
•
•
Join Date: Jul 2007
Posts: 18
Reputation:
Solved Threads: 0
This is slowly converting me to a suicidal lunatic 
I have an ordered list with class="funkynumbers". The CSS is as follows:
and the markup is like that:
The <li> background-image hides the list markers in IE, whereas in all other browsers the list marker is in front of it, creating the desired effect.
I've searched a lot about this issue, and haven't found anything.
Any ideas?
Thanks in advance...
PS: The <if condition=""> syntax is a proprietary convenience of the software platform I'm using, just ignore it.

I have an ordered list with class="funkynumbers". The CSS is as follows:
CSS Syntax (Toggle Plain Text)
ol.funkynumbers { list-style-type:decimal; list-style-position:inside; margin:0; padding:0; } ol.funkynumbers li { font-size:42px; padding: 10px 0px 10px 12px; font-weight:bold; background:url(nem/images/layout/circle_orange.gif) no-repeat 0% 10px; color:white; <if condition="is_browser('ie')"> vertical-align:top; display:list-item; </if> min-height:30px; } ol.funkynumbers li div.list_content /* once IE6 usage drops significantly, ditch the class and use ol.funkynumbers li > div */ { font-size:12px; font-weight:normal; color:#555; float:right; width:840px; margin-top:<if condition="is_browser('ie')">5<else />-<if condition="is_browser('opera')">5<else />42</if></if>px; }
and the markup is like that:
HTML Syntax (Toggle Plain Text)
<ol class="funkynumbers"> <li> <div class="list_content">blah blah blah</div> </li> <li> <div class="list_content">blah blah blah</div> </li> <li> <div class="list_content">blah blah blah</div> </li> <li> <div class="list_content">blah blah blah</div> </li> <li> <div class="list_content">blah blah blah</div> </li> <li> <div class="list_content">blah blah blah</div> </li> </ol>
The <li> background-image hides the list markers in IE, whereas in all other browsers the list marker is in front of it, creating the desired effect.
I've searched a lot about this issue, and haven't found anything.

Any ideas?
Thanks in advance...
PS: The <if condition=""> syntax is a proprietary convenience of the software platform I'm using, just ignore it.
Last edited by Lucrezia; Aug 3rd, 2008 at 11:55 am.
•
•
Join Date: Aug 2008
Posts: 383
Reputation:
Solved Threads: 35
Try to simplify the problem on a different page, when it's just not working out...
This is working in Firefox 3 and IE 7 on Windows.
This is working in Firefox 3 and IE 7 on Windows.
HTML and CSS Syntax (Toggle Plain Text)
<html> <head> <style type="text/css"> ol { list-style-type:decimal; list-style-position:inside; } div { display: inline; /* your line-wrap problem */ /* or use an inline element not block element */ } li { padding-left: 10px; padding-top: 3px; background:url(http://stb.msn.com/i/B6/32E46DE281A68B9C33FC582D2569D.gif) no-repeat 0 0; } </style> </head> <body> <ol> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> <li><div>blah blah blah</div></li> </ol> </body> </html>
•
•
Join Date: Aug 2008
Posts: 383
Reputation:
Solved Threads: 35
Darn that Opera, it's one of the most CSS compliant browsers but a real pain in my **** when it comes to CSS layout or JavaScript dynamic scripting...
Okay, I installed the latest Opera just for you. The styles I submitted yesterday are working in this latest version of Opera 9.51 with the list markers over the background image...so I can't debug it unless I go back to what you originally submitted...possibly the browser is throwing some kind of error on your conditional <if> statements, which is not standards compliant (to my knowledge)...you might remove those and see if it helps.
Or post here what you have done since then and I will try and help.
Okay, I installed the latest Opera just for you. The styles I submitted yesterday are working in this latest version of Opera 9.51 with the list markers over the background image...so I can't debug it unless I go back to what you originally submitted...possibly the browser is throwing some kind of error on your conditional <if> statements, which is not standards compliant (to my knowledge)...you might remove those and see if it helps.
Or post here what you have done since then and I will try and help.
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Rotating pictures
- Next Thread: [urgent]Searching the static site...
Views: 3728 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
alignment background blog browser cart cascade center chrome code compatibility containers create css deleted design designing distortion div divs dreamweaver drupal editor emailmarketing embed explorer fail firefox float font fonts format free frontpage google helprequired-urgent hover html ide ie6 ie7 iframe image input internet internetexplorer iphone javascript jpeg js links list map maps margin marketshare missing mozilla mp3 navigationbars newb object opacity opera override overwrite perl player pnginie6 position positioning prevent problem scroll seo shopping strings studio style table tables tag templates text translation url validation visual visualization w3c web webform website websitedesign windows7 word wordpress xhtml xml xsl youtube





