nguyenanhtuanhvan Posted March 15, 2013 Share Posted March 15, 2013 What should i write in css to make my web still stand in the centre of the window when zoom in and zoom out , just like this page:http://hn.24h.com.vn/ ? Link to comment Share on other sites More sharing options...
deldalton Posted March 15, 2013 Share Posted March 15, 2013 (edited) Nguyenanhtuanhvan. You can use the margin property set to "0 auto" to center elements, using css. For example ... div {margin: 0 auto;} I think you'd also have to make sure that any elements have a min-width to ensure that they don't collapse. Edited March 15, 2013 by deldalton 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