Div won't center
Hi! I'm working on my portfolio and have a problem...
The menubar won't get into the center! Check http://seer.se and see the column with "1, 2, 3, Hem, Sebastian, Kontakt". It should be just down under the header.
I think this problem is out of my knowledge since I really am an amateur at this so I would be so glad if someone could help me with it.
To center an element you need three things:
- a valid DocType
- an element with a width
- that elements right/left margins set to auto
Right now, your #header and #info are full width elements. #header is centered by the background properties you put on it.
#info might be centered like this:
This would work if you got #header and #info out of#content -
margin: 120px 0 0 -190px;
margin: 0px auto;
Ah, allright! Thank you so much! :)