SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Mar 2004
    Posts
    260
    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
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,820
    Mentioned
    110 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.

  3. #3
    SitePoint Addict
    Join Date
    Mar 2004
    Posts
    260
    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
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,591
    Mentioned
    411 Post(s)
    Tagged
    6 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
    Posts
    260
    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
  •