I have designed simple sample for layout with body CSS and content like:
PHP Code:
* {
margin: 0;
padding: 0;
}
body{
background: #FF0000 url(../images/bgimage.gif) repeat-x top;
margin-top:0px;
}
#content {
position:relative;
width: 1000px;
margin-top:0;
padding-top:0;
}
#main {
margin: 0;
padding:0;
}
Why is #content
not aligned vertically to the top?
Seems some issue with body or #content...
How to move completely to the top this DIV element?
I have around 22px under top line.
As we know <DIV> is a block-level element, so each box begins its own line.