JaredFish Posted February 14, 2006 Share Posted February 14, 2006 I was using a huge centered table 2 put my page right in the middle but i want to convert my html to strict xhtml! Problem is i don't know how to center a division....probably missing something simple.. please help!! Link to comment Share on other sites More sharing options...
aspnetguy Posted February 15, 2006 Share Posted February 15, 2006 if you have a <div> as a 'wrapper' and want to center it do this.HTML ...<body><div class="wrapper">......</div></body>... CSS .wrapper{ width: 780px; margin: auto;} margin:auot will center the div but you must give the div a set width first. Link to comment Share on other sites More sharing options...
JaredFish Posted February 18, 2006 Author Share Posted February 18, 2006 shot man - division works perfect... got a new prob... posted it in a new topic. 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