Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How do I remove the margin above an image in HTML?

Hi! I need a .jpg in my side frame to attach directly to one in the title frame above. The problem is, some background shows above the sidebar image, which breaks the flow from one image into the other.

Think of it as a picture of a person, split into two frames. Above the waist in one frame, below the waist in another. Right now, there's a space between the top and bottom image - like the person's been cut in half.

I'm using FrontPage at the moment - how can I eliminate the margin above the .jpg and connect the two? Is there any way to program a site with an image flush at the top of the page - no background pixel buffer involved at all?

4 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    In your lower frame, insert the code topmargin="0" in your main body tag, like this:

    <body topmargin="0">

    By default, I do not believe that HTML frames or pages have bottom or right margins, so this should do the trick.

    Be careful with this, though. Pages without a margin top or left can look a little funky, so make sure it looks right.

  • 1 decade ago

    Using CSS you can control the margin and padding of any element on the page.

  • Anonymous
    1 decade ago

    try http://www.w3schools.com/html/default.asp to search your HTML question... i'm learning HTML but sorry i don't know enough yet to answer your question... maybe make no borders on it??

  • 1 decade ago

    idk

Still have questions? Get your answers by asking now.