| | |
Background image is not displayed in IE 7
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2009
Posts: 2
Reputation:
Solved Threads: 0
Hi everyone,
Kind of a newbie in the web design arena and therefore my apologies if this post is a repeat of a previous one, all the ones I found to be similar didn't seem to fix my problem
I have a list surounded with a class which its purpose is to add a tick for each list item. it works find in FF but of course not in IE7
here is the code
and here is the css
If anyone can help that will be great
thanks
Kind of a newbie in the web design arena and therefore my apologies if this post is a repeat of a previous one, all the ones I found to be similar didn't seem to fix my problem
I have a list surounded with a class which its purpose is to add a tick for each list item. it works find in FF but of course not in IE7
here is the code
HTML and CSS Syntax (Toggle Plain Text)
<ul class="tick-list"> <li>A&E onsite</li> <li> <img src="/img/scorecards/Fair.gif" alt="Fair" title="Fair" /> blah blah </li> </ul>
and here is the css
HTML and CSS Syntax (Toggle Plain Text)
ul.tick-list li {background:#fff url(/img/find-services/listings/tick-list.gif)no-repeat 0 0; padding:0 0 .6em 27px; min-height:21px;}
If anyone can help that will be great
thanks
Last edited by clekkas; Mar 5th, 2009 at 12:57 pm.
•
•
Join Date: Nov 2007
Posts: 45
Reputation:
Solved Threads: 1
You should place the list inside a div and give the surrounding div a background. Like so;
The above code works in IE 7 and Firefox 3.
HTML and CSS Syntax (Toggle Plain Text)
<head> <html> <style type = "text/css"> ul.tick-list li {padding:0 0 .6em 27px; min-height:21px;} .ulwrapper {background:#fff url(/img/find-services/listings/tick-list.gif) no-repeat 0 0;} </style> <body> <div class="ulwrapper"> <ul class="tick-list"> <li>A&E onsite</li> <li> <img src="/img/scorecards/Fair.gif" alt="Fair" title="Fair" /> blah blah </li> </ul> </div> </body> </html>
The above code works in IE 7 and Firefox 3.
Last edited by colweb; Mar 6th, 2009 at 9:07 am.
•
•
Join Date: Nov 2007
Posts: 45
Reputation:
Solved Threads: 1
•
•
•
•
Hi colweb,
That did the trick, if it is easy to explain why this is needed it will be good to know for future purposes
Thanks for your quick reply and help
![]() |
Similar Threads
- Firefox background-position problem solved (JavaScript / DHTML / AJAX)
- Stretch Image in JLabel (Java)
- Background for different sized screens ? (Site Layout and Usability)
- Setting a Background Image problem (PHP)
- How to make an image unsaved? (IT Professionals' Lounge)
- image swap (JavaScript / DHTML / AJAX)
- Dreamweaver background image refresh (Graphics and Multimedia)
Other Threads in the HTML and CSS Forum
- Previous Thread: Display Events in Calendar
- Next Thread: Dynamic Iframe for External Domain
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form google griefers hackers hitcounter hover html ie7 ie8 iframe image images internet intranet iphone javascript jpeg layout macbook maps mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning scroll seo shopping swf swf. textcolor timecolor titletags url urlseparatedwords visualization web webdevelopment webform website windows7






