Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE background bug driving me nuts!
Old 10-13-2006, 03:55 PM IE background bug driving me nuts!
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
I'm having a huge issue with IE6:

I have 2 divs with the same ID but different classes on 2 different pages:

<div id="sub_images" class="services_ocean"></div>
and
<div id="sub_images" class="services_transload"></div>

They share a common CSS file:

Code:
#sub_images {
	width: 325px;
}

#sub_images.services_ocean  {
	background-image: url("sub_images_services_ocean.jpg");
	height: 460px
	}

#sub_images.services_transload  {
	background-image: url("sub_images_services_transload.jpg");
	height: 430px
	}
When loaded, the services_ocean div shows its background and the services_transload shows nothing. If I switch the 2 selectors in the CSS file and put the services_transload selector before the services_ocean, then the transload page works and the ocean page shows nothing.

Here are working links:
http://www.siriusad.com/ietest/ocean.html
http://www.siriusad.com/ietest/transload.html

and the CSS file is here:
http://www.siriusad.com/ietest/screen.css

Can anyone tell me why this is happening or help me find a work-around? This works fine in Safari and FF.

God IE is such a piece of crap!

Last edited by funkdaddu; 10-13-2006 at 03:57 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
 
Register now for full access!
Old 10-13-2006, 04:20 PM Re: IE background bug driving me nuts!
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
The problem might be in using the same ID more than once. IDs are really a one time thing, though I have seen pages work with two elements having the same ID. They shouldn't though.

Would switching sub_images to a class work? Seems you're using it more as a class anyway.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-13-2006, 04:22 PM Re: IE background bug driving me nuts!
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
After looking around some more I found this:
http://sonspring.com/journal/ie6-multi-class-bug

I just removed the ID from the selector and gave the class a unique name and it seems to work. I was trying to streamline things. Thanks for the suggestions.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-13-2006, 04:29 PM Re: IE background bug driving me nuts!
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to IE background bug driving me nuts!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14133 seconds with 12 queries