HI Guys,
I'm a bit of a newbie nob at CSS coding but have taken time to learn as much as possible and create my code from scratch. I have been frustrated with IE6 on several things but have worked out most of the probs.
I have a perplexing problem now. I am using background-image on a ul hover. It works great in firefox and it actually works on my IE6 on localhost. When I have uploaded the file to the host, the hover background image no longer works in IE6 (all's well in firefox). I've checked this behaviour on another computer's IE6 and get the same results.
I believe this is due to the way different browsers treat relative URLs in external CSS files.
In your CSS file there is the following...
Code:
background-image:url(../images/nav_bar_bkgd.jpg);
try replacing that with...
Code:
background-image:url(/images/nav_bar_bkgd.jpg);
All browsers will fetch that from the correct place as it is an absolute path. I recommend using absolute paths wherever possible in external CSS files.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
« Reply to background-image (hover) works IE6 local but not on host