MrFish Posted June 26, 2009 Share Posted June 26, 2009 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.Anyone know what to do? Link to comment Share on other sites More sharing options...
Ingolme Posted June 27, 2009 Share Posted June 27, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.