New to CSS and having IEx display issues. Need advice for box-model hack (i think)

Discussion in 'CSS' started by Asbyo, Aug 12, 2007.

  1. #1
    Hey guys, I am new to CSS and am having problems getting my new page to display in IE7 specifically, but im sure IE in general is messing up. Firefox and Safari work fine. IE just throws my alignments all off. ANY advice would be greatly, greatly appreciated.

    The site is at www.moosecreeksauce.com

    the CSS code is:

     
    Asbyo, Aug 12, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Well, you have a carriage return before your doctype, that could be tossing IE into quirks mode... you appear to be padding in content with   - a total waste of code that might give different widths in different browsers/system metrics, etc, etc.

    Though whatever your problem was I assume it was fixed since from here the page looks identical in IE 6&7, FF, Opera and Saffy.
     
    deathshadow, Aug 12, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Another thing I'd do is use the universal selector to kill the margins and padding on everything, not just the top margin (this way you can remove all those margin: 0; padding: 0; declarations and just give margins and padding to those elements that need it).
     
    Dan Schulz, Aug 12, 2007 IP