I’m making a website that has a fixed width en height. Is it possible to center this vertically? Horizontal is easy using a pagewrap with margin: 0 auto. I didn’t find anything about vertical center.
I thought of that, but this isn’t what i want. I would like to center dynamically, just like horizontal center. So when you scale the browser window, the content flows with it.
For example if you have a website with say 500px width and height and you would like to position this exactly in de middle of the browser window. How could this be done in CSS?
I know of a method using a table (using vertical-align on <TR>) but i would like to use only CSS for my page-layout. The reason for this is that my users will be able to select a different layout (CSS Selector). Use of a table would mess things up.
by the way: why doesn’t "margin:auto auto;" work? :(
(Sorry for my bad english, it’s not my native language :oops: )