Layout isn't displaying right, prlly really easy fix

Discussion in 'CSS' started by RuDeDoGg, Jun 20, 2007.

  1. #1
    Could you guys help me, I can't figure out why this layout won't display properly in IE7. In firefox it looks perfect, but for some reason IE doesn't like it and pushes the content down past the nav bar.

    Edit: Removed links, solved. Thanks Dan Schulz !

    Thanks!
     
    RuDeDoGg, Jun 20, 2007 IP
  2. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    short answer: you're too wide, so it gets pushed down to where it can fit.

    long answer: ie handles padding and borders differently in the box model.
    you need to set your width with taking borders and padding into the total width.
     
    briansol, Jun 20, 2007 IP
  3. RuDeDoGg

    RuDeDoGg Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #3
    I tried changing the width but it still doesn't work :| I'm stumped and the website is live :(
     
    RuDeDoGg, Jun 20, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Take this garbage:
    
    <!--
     ____________________________________________________________
    |                                                            |
    |    DESIGN + Pat Heard { http://fullahead.org }             |
    |      DATE + 2006.03.19                                     |
    | COPYRIGHT + Free use if this notice is left in place       |
    |____________________________________________________________|
    
    -->
    
    
    Code (markup):
    And move it below the HEAD element's opening tag.
     
    Dan Schulz, Jun 21, 2007 IP
    RuDeDoGg likes this.
  5. RuDeDoGg

    RuDeDoGg Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #5
    thank you so much^^ + rep :D
     
    RuDeDoGg, Jun 21, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm sorry, first I didn't mean to come off as being rude (those who know me on SitePoint will know what happened to me recently), and second, i forgot to tell you that having anything above the DOCTYPE declaration (even blank space) will force IE into quirks mode (meaning it'll have to guess how you want the page to look, rather than following your instructions to the letter).
     
    Dan Schulz, Jun 21, 2007 IP