How do I place a DIV tag image on the very top of the page in HTML5?

Posted by Jacob on Stack Overflow See other posts from Stack Overflow or by Jacob
Published on 2010-04-20T01:53:35Z Indexed on 2010/04/20 2:43 UTC
Read the original article Hit count: 382

Filed under:
|
|
|
|

Hello there.

I'm trying to put an x-repeat "grid" of images by using background-image in CSS, then using the id in a DIV tag. My intention is to put a sort of "panel", then always extends to the very top of the page, and loops with repeat-x. It works just fine without a DOCTYPE, but when I put the clean in the code, it pushes the image in the tag downwards, as if there's a margin on the top of the page of about 15 px or so. I tried top-margin, z-index, with no success.

Excuse me if I'm asking a silly question, but I'm sort of new.

Thanks, -Jacob

© Stack Overflow or respective owner

Related posts about html5

Related posts about div