SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Oversized <HTML> element?

  1. #1
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Oversized <HTML> element?

    Hi, the website I'm working on has a horizontal scroll bar, and to me it looks as if the <html> element is wider than 100%. I guess it could also be something else.

    But I just cannot figure out what or why and would be grateful for any help.

    Also, I've just noticed that the <body> element doesn't seem to sit right at the top of the page. Why is that?!

    http://stage.truedesign.electra-2.ti...-return-letter

    Many thanks

  2. #2
    Mouse catcher silver trophy
    SitePoint Award Recipient Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,096
    Mentioned
    66 Post(s)
    Tagged
    1 Thread(s)
    For some reason your footer has {padding:20px 0 20px 279px;}
    That 279px looks like it should be 0.
    Any posts I write in Arial are on my mobile phone, so please excuse typos etc.
    Any posts I write in Verdana are on a PC, so feel free to berate me mercilessly for any mistakes


  3. #3
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bingo! The footer was the problem, not the padding but the width in my case.

    BUT, the second issue I've mentioned remains: The <body> doesn't seem to start right at the top of the page. Any ideas?

  4. #4
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,926
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by spirelli View Post
    The <body> doesn't seem to start right at the top of the page. Any ideas?
    It's caused by the top margin here:

    Code:
    #container {
    margin: 20px auto 0 auto;
    width: 959px;
    padding: 0 20px;
    }
    You have PHP errors at the bottom of your page right now.

  5. #5
    SitePoint Addict
    Join Date
    Mar 2004
    Location
    london
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face

    Ohhhh, thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •