SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Page Border

  1. #1
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Page Border

    I'm trying to create a page with a simple 10px white border all around it that should stretch across the entire width and height of the window browser.

    This is the CSS for the <body>:

    body{
    background: #efeeec;
    margin: 0px;
    padding: 0px;
    border: 10px solid #FFFFFF;
    font: normal 85%/120% verdana, arial, geneva, helvetica, sans-serif;
    }

    Of course, it doesn't work as the bottom border goes as far as the content goes:

    http://clients.raffaelemalanga.co.uk/bare/dev

    I'm aware that some sort of height=100% needs to be specified somewhere but am not sure how.

    Sorry if this has been replied on the forum already.

    Raf.

  2. #2
    Pedantic Semantic blain's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Technology is dominated by two types of people:
    those who understand what they do not manage,
    and those who manage what they do not understand.

  3. #3
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Blain. It works fine in IE and FF, PC versions.


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
  •