Forum Moderators: open

Message Too Old, No Replies

How to get rid of the blank line above the masthead

want page to start at top of browser window without a space

         

lgn1

4:58 pm on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I noticed that some pages masthead is flush with the top of the browser display window, while my site, and a lot of others have a blank line above the masthead.

Is this a feature that is controlled by CSS, as I can't get rid of it using plain HTML.

The first line after my body tag is a <DIV> statement to center the webpage followed by my masthead image.

Is their a .css tag-attribute to fix this?

Kufu

5:03 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



body
{
margin:0px;
}

or

body
{
margin-top:0px;
}

Robin_reala

2:11 am on Mar 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're using XHTML the <html> element also had a default margin/padding. It's best to zero them both out if you don't want them:

html, body { margin: 0; padding: 0; }