Web Hosting Talk







View Full Version : I must be over looking this but...


templatemake
11-04-2007, 04:36 PM
How in the world do people get an image at the very top of the page with no space between? Example the little light blue bar at the top of this site...any ideas? Ive been googling for how to do this with css and I haven't been able to find anything. I know it must be something simple.:rolleyes:

bear
11-04-2007, 04:47 PM
body
{margin:0;
padding:0;
}
That will push all content to the edges, mostly. ;)

templatemake
11-04-2007, 04:50 PM
That will push all content to the edges, mostly. ;)
Gah I still have a couple pixels to go.:stickout:

azizny
11-04-2007, 06:09 PM
<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">


Insure table doesn't have no padding/space.

Peace,

bear
11-04-2007, 06:34 PM
I didn't give those as they're deprecated. ;)

templatemake
11-05-2007, 01:37 PM
Thanks guys so it was some what simple.:o

Katasdf
11-30-2007, 08:36 PM
I've had a similar problem. Margins was always the quick fix :agree:

Paul-M
12-01-2007, 09:48 AM
Usually I use this at the top of all my css:


* {
padding: 0;
margin: 0;
border: 0;
}


It clears those tags on every CSS item that doesn't define them itself.