CSS coding, Cascading Style Sheet, learn, tutorials, templates, examples, discussions and help.
margin: 0 auto;
Means the text above start at 0 pixels from the left, but what automatic rest? What are some examples of what I can change the automobile?
- Posts: 530
- Joined: Tue Dec 21, 2010 12:45 pm
When applied on the body or a div wrapper, the center simply content horizontally on the page. 0 applies to the top and bottom, the car left and right. It can also center the individual elements in a div, but does not mean 0px 0.
- Posts: 1165
- Joined: Tue Dec 21, 2010 12:46 pm
Return to CSS Forum
Who is online
Users browsing this forum: No registered users and 0 guests