SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need the body to have no effect on layout

    Hello,
    I need to make the body tag have no effect at all on the layout of my page. I need all styling to start inside the body with divs. Seems like it should be easy but I am getting a thin border around the page that I cannot get gid of.

    I thought this might do it. But I still get this little border around the page that I dont want.

    body {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    border: 0;
    }

    #body-like-styled-container {
    }

    Can anyone help?

  2. #2
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Normally, this should do it:

    Code:
    body {
       margin:0;
       padding:0;
    }
    No need for position, width or border. And don't get what you want to achieve with this id?

  3. #3
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you show us the page?

  4. #4
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Oops!

    Oh no! Im sorry. I just put a version online to show you guys and noticed that it works fine with just margin and padding set to 0. I was using a wysiwyg editor to preview the page in different browsers and the wysiwyg must be putting that border in there. Weird!

    Sorry again. And thanks for your responses.

  5. #5
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem, we're here to help.

    wysiwyg Editors can be sometimes tricky, so make sure to check your site always in a browser, better in more than just one.


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
  •