Results 1 to 7 of 7

Thread: theres a border round a graphic I can't get rid of....

  1. #1
    Not that blue at all Blue Cat Buxton's Avatar
    Join Date
    May 2004
    Location
    UK
    Posts
    932

    theres a border round a graphic I can't get rid of....

    Have a look at my adventure vacations site there is an invisible border round the graphic, infact round the entire page, about 20 px wide.

    You can see it quite clearly just looking at the header:

    http://www.wideopenspaces.co.uk/headera.htm

    if you look at the top right hand corner.

    I haven't deliberately put it there, so how can I get rid of it and get the picture in the top of the corner?

  2. #2
    Registered tomek's Avatar
    Join Date
    Jun 2004
    Posts
    102
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    100 points for me

  3. #3
    Registered abelony's Avatar
    Join Date
    May 2004
    Posts
    47
    Or you could add the following tag to your style sheet:

    body {
    margin: 0px;
    }

  4. #4
    Registered tomek's Avatar
    Join Date
    Jun 2004
    Posts
    102
    I think the style sheet way doesn't work with old browsers like nn4...
    the body-attribute way works in all browsers...

  5. #5
    Registered abelony's Avatar
    Join Date
    May 2004
    Posts
    47
    Oh I see.

    From what I have read though, worrying much about old browsers is a waste of time. I personally don't care. Such a small amount of my visitors use old browsers that I don't see a reason to code for them.

  6. #6
    Roll Tide! mobilebadboy's Avatar
    Join Date
    Apr 2004
    Location
    Mobile, AL
    Posts
    428
    Use margin as well as padding and that should cover most any browser that really matters.

    body {
    margin: 0px;
    padding: 0px;
    }

    And if you're trying to run valid XHTML, that old way won't validate.
    Shawn Kerr .com

  7. #7

Similar Threads

  1. Graphic problem on my site w/Dreamweaver MX
    By citywillsaveus in forum Graphics & Multimedia
    Replies: 3
    Last Post: 06-25-2004, 07:13 AM
  2. My first go round with AWS
    By RockNRollPig in forum User Owned Websites
    Replies: 5
    Last Post: 02-17-2004, 10:28 PM
  3. Table border colors?
    By Kenny L in forum HTML, CSS, Layout, and Design
    Replies: 13
    Last Post: 01-19-2004, 11:14 AM

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
  •