bluerattle
02-07-2005, 03:08 AM
I am building a site that is going to have a number of pages containing some common components, whose look will change in different sections of the site. I have been successfully building up the basics in CSS and testing them on Mac browsers. Now I have tried a test on Windows IE6 and it is not working. I'd like to know if this is an IE6 limitation so that I can cut my losses and just start hard-coding the variations. (Which would be too bad, it was working nicely on the Mac browsers -- even IE5!)
Basically, I have an CSS declaration of an ID, for example
#story {
width: 512px;
}
and then for each I have a catalog of classes which modify other attributes.
#story.vanilla {
background-color: blue;
}
#story.chocolate {
background-color: red;
}
And in the HTML I use declarations like:
<div id="story" class="vanilla"> blah blah </div>
blah blah
<div id="story" class="chocolate"> blah blah </div>
On the Mac browsers it has worked fine: chocolate and vanilla have the width of a story ID, but have their own background color. On Windows IE6 it seems to apply only the attributes for the first class defined -- vanilla in this case. (BTW, I'm not trying to supersede the same attributes as those defined by the ID -- the class definitions are for a different set of attirbutes.)
Is this a known problem, or should I submit code to see if I'm coding something wrong?
thanks,
BR
Basically, I have an CSS declaration of an ID, for example
#story {
width: 512px;
}
and then for each I have a catalog of classes which modify other attributes.
#story.vanilla {
background-color: blue;
}
#story.chocolate {
background-color: red;
}
And in the HTML I use declarations like:
<div id="story" class="vanilla"> blah blah </div>
blah blah
<div id="story" class="chocolate"> blah blah </div>
On the Mac browsers it has worked fine: chocolate and vanilla have the width of a story ID, but have their own background color. On Windows IE6 it seems to apply only the attributes for the first class defined -- vanilla in this case. (BTW, I'm not trying to supersede the same attributes as those defined by the ID -- the class definitions are for a different set of attirbutes.)
Is this a known problem, or should I submit code to see if I'm coding something wrong?
thanks,
BR