Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Box Model Internet Explorer

tcampbell
Posts: 19
Joined: 14 Apr 07
Trust:

Box Model Internet Explorer

Anyone know an easy workaround for the box model problem in IE? I have been tooling around with a css menu, but it displays funny in IE6. In IE7 and FF it looks good, but IE6 adds too much padding/margin is on the left(I'm still trying to understand the box model completely).

I've seen a few hacks online, but either it's late and I can't focus, or I just don't quite understand how to get it to work.

Here is a snippet of the code




IE6 displays it right if the padding and margin are at 0px
  • 0
tcampbell
Posts: 19
Joined: 14 Apr 07
Trust:
Never mind guys, figured it out. It's a wonder what a good night sleep will do for you.

Edit--

I should post the code I used in case anyone runs across this problem.

I added this to to the css directly under the rule above:



adding a "\" in front of the property I wanted IE to use.

so the code looks like this in my css:



Hope thats helpful,

Terrance
  • 0
Last edited by tcampbell on 08 Jun 07 3:21 am, edited 3 times in total.
 

PremiumMember
chatyak86
Posts: 1369
Joined: 17 Jun 06
Trust:
Good stuff :)
  • 0