Forum Moderators: not2easy

Message Too Old, No Replies

CSS issue

         

Blelisa

2:23 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



Hi,
I am working on a site and have an image that needs to be at the top, but when I place it there is a space along the top and on the sides that I can not get rid of. This is creating a problem becuase the image is black and the rest of the background of the site is white, hence the problem. Does anyone know how to position this image in CSS so it is flush with the top of the page and flush along the sides?

benihana

2:24 pm on Mar 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried :

body {
margin:0px;
padding:0px;
}

?

grahamstewart

2:26 pm on Mar 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The space is a default margin/padding that most browsers create on the body tag.

body {
margin: 0;
padding: 0;
}

should get rid of it.

<edit>bah... benihana types faster than me...</edit>

Blelisa

2:31 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



Thanks that was it!