Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Tulsa, OK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    initial space on page help

    I've got a page in an iFrame but it places a good sized blank space before any content on the page. I guess it does this with any page but I need to remove it. Is there a way to do this?

    It is sort of like a default top padding for the page.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    Supports older browsers as well. CSS:

    <style type="text/css">

    body {
    margin: 0px;
    }

    </style>

    Support varies; will eventually be the standard.

    http://www.idocs.com/tags/document/_BODY_TOPMARGIN.html


  •  

    Posting Permissions

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