FateAce Posted May 10, 2014 Share Posted May 10, 2014 (edited) Hey guys, this is probably a newbie topic, but I can't seem to get the header to work for a website I'm making. I want to have it the where the div tag (or any other tag if it's better suited) be flush with the sides of the screen, much like it is on this site, and many others, such as the face punch forums. I have have tinkered, fiddled, and even copied directly from templates, in an attempt to make it do this. Butt every time, theres ALWAYS a 10px gap to the left side of the box. I have done and researched all I can, and I still cannot figure out why this is happening. What do I have to do to make it work? Also, sorry if I sound annoyed. I have been fighting this for almost 2 full days now with no results. Edited May 10, 2014 by FateAce Link to comment Share on other sites More sharing options...
Ingolme Posted May 10, 2014 Share Posted May 10, 2014 The <html> and <body> elements usually have some margin or padding on them by default. I usually put the following code in my stylesheets along with some other things: html, body { margin: 0; padding: 0;} Link to comment Share on other sites More sharing options...
FateAce Posted May 10, 2014 Author Share Posted May 10, 2014 The <html> and <body> elements usually have some margin or padding on them by default. I usually put the following code in my stylesheets along with some other things: html, body { margin: 0; padding: 0;} That has fixed ALL my problems, thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now