Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS background on HTML tag – weird top margin

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34683
    paperrobots
    Participant

    I have a repeating background on my HTML tag, and then a centered image on my body tag. However when I do the background on the HTML tag I get a 17px space at the top. Even with margin and padding set to 0 on the HTML tag. When I remove the BG it goes away. Any ideas what might cause this?

    #88700
    TheDoc
    Member

    Do you have a link? It sounds like a margin somewhere else in the document is pushing it down.

    #88701
    paperrobots
    Participant

    I figured out it was a h1 i had first thing. If I add any margin or padding, it forces the body down. Seems odd to me. Shouldn’t the body always be at the top?

    #88702
    TheDoc
    Member

    I can’t remember the cases that it happens in, but it has something to do with what the h1 is ‘pushing up against’.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.