Jump to content

Does The <body> Have Padding? [fixed]


MrFish

Recommended Posts

I'm making a site that looks like this-http://img229.imageshack.us/img229/622/sitedesign1j.pngA little unoriginal but web 2.0 is still in right? Ha ha :)Anyway, I have the background image set up with the header going repeating on the x-axis. The header content will have the same height to look like it's sitting in there. You'l understand when you see the image. The only problem is, the whole page seems to have a padding on it. How do I get rid of this. I want want to shorten the header height to fit because a lot of stuff has to go in there and I like the design the way it is. I tried absolute positioning and it worked but the div is no longer center aligned.headerpadding.pngAnyone know what to do?

Link to comment
Share on other sites

You always should reset margin and padding on the <html> and <body> elements when styling in CSS:

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...