• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

CSS, no top margin?

madmatt911

New Member
I am making a website. It is a single column and I want the top and bottom of the design to touch the top and bottom of the browser. There will only be left and right borders on the column.

How do I get rid of the default spacing?
 
Try this bit of CSS.

Code:
body {padding-top:0; padding-bottom:0; margin-top:0; margin-bottom:0;}
 
Back
Top