The Praetorian Posted August 24, 2006 Share Posted August 24, 2006 Was just wondering if anyone could tell me why I have a space at the top of my table. There's a small gap between the top of the frame and the edge of the browser that I don't want there.. Can't figure out why it's there.WebsiteMy Css Link to comment Share on other sites More sharing options...
Reg Edit Posted August 24, 2006 Share Posted August 24, 2006 Well, in your body style you have margin: 5, so that is making your space.You can set the left, top, right, bottom margin separately - margin is an abbreviation for setting them all to the same value. For instance: body { background-image: url('http://www.tsrealms.com/forum/templates/AcidTech/images/body.gif');/* margin: 5; */ margin-left 5; margin-right: 5; margin-bottom: 5; margin-top: 0; color: #D0D0D0; font-family: serif, times;} Link to comment Share on other sites More sharing options...
justsomeguy Posted August 24, 2006 Share Posted August 24, 2006 Also, it's not technically valid to leave off the units. You want the margin to be 5 what? Points? Pixels? Centimeters? Inches? Fathoms, perhaps? If you are making the browser guess, you're asking for problems. Always include the units. Also, it's technically correct to not have a space between the quantity and the unit, so 5px will validate but 5 px will not. The only number where it is valid to leave off the units is 0. 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