Results 1 to 2 of 2

Thread: Easy Question

  1. #1
    Join Date
    Feb 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Easy Question

    I can't for the life of me remember how to get the border off of the outside of a page so that an image can lay right on the edge of it...I tried putting border="0" in both the image and body....that should be an easy question for everyone else

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, you can set the margin and padding of the body to zero or offset the the margin or position of the image to compensate for the body's default or set margin and padding. Since margins padding for the body differ from browser to browser, the best approach would be to either set them to zero or a size of your choice, then work with the properties of the image to position it where you like. One possibility:

    Code:
    <head>
    <style type="text/css">
    body {
    margin:15px;
    padding:0;
    }
    
    .flush {
    margin-left:-15px;
    }
    </style>
    </head>
    <body>
    <img class="flush" src="whatever.jpg">
    </body>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •