|
Firstly, get rid of the margin-top, margin-bottom, and so on. You can roll them all into one by putting margin: (it covers the four sides in alphabetical order if you are using more than one value). By having margin: auto; you get the browser to equally space the left and right spaces from the margins. Giving you a centered div. #id is used with your div tags. <div id="#header"></dv>, this tells the div to get all of its formatting from your CSS.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|