|
Posted by dorayme on 07/26/07 21:31
In article
<1185465709.765842.24560@22g2000hsm.googlegroups.com>,
pablopatito <martinatgoogle@yahoo.co.uk> wrote:
> I have the following page which seems to work in all browsers except
> IE6. In IE6, the second class (myclass2) is ignored, but the first
> class works fine. Is there something wrong with my code, or is there a
> workaround. Any advise for a relative novice would be much
> appreciated.
>
>
> <style>
> #mainbody {background: red;width:600px}
> #mainbody.myclass1 {background: yellow;width:300px}
> #mainbody.myclass2 {background: green;width:300px}
> </style>
>
> <div id="mainBody">Hello</div>
>
> <div id="mainBody" class="myclass1">World</div>
>
> <div id="mainBody" class="myclass2">World</div>
Try lower case in the html to match the css.
--
dorayme
Navigation:
[Reply to this message]
|