Old 06-01-2005, 06:45   #1 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,929
Mulitple Classes ie5

This is css and code Im using, its fine in ie 5.5 and 6. + the fox etc.
ie 5 (pc) is not applying the first class though, anyone know of a way to fix this ?


p.main1{
margin-top:30px;
margin-left:10px;
margin-bottom:7px;
margin-right:7px;
}

p.main2{
margin-top:0px;
margin-left:10px;
margin-bottom:7px;
margin-right:7px;
}

<p class="main1">
blah blah
</p>
<p class="main2">
blah blah
</p>
  Reply With Quote
Old 06-01-2005, 06:50   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,202
what css rules are above .main1? Have you used the box model hack directly above it?
  Reply With Quote
Old 06-01-2005, 06:51   #3 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,929
yep
  Reply With Quote
Old 06-01-2005, 06:53   #4 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,202
IE5 ignores the declaration directly after using the bmh. To get round it add the "be nice to opera" thingy.

see here - http://tantek.com/CSS/Examples/boxmodelhack.html

That way IE5 will just ignore that and nothing important.
  Reply With Quote
Old 06-01-2005, 06:56   #5 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,929
Nice work, did the trick thanks.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8