aligning along the y-axis ?

wizzpig666

New Member
Hi guys.

I have some pages that are only about 600px high. is it possible to set auto margins in CSS the same way one does when centering a div along the x-axis, so that the page would be centered on a large screen ?

I tried the obvious of setting my top and bottom margins to auto on * , body, and container tags but my page still aligns to the top of the screen.

Can anyone please help me out here?
 

adx

New Member
I get what you're going for but I've never seen it done before. I mean, you can set a top margin to align the content further down the page but I don't think centering it vertically is such a good idea, or even possible? When I load a page I expect stuff to be at the top. Most people don't have screens big enough for this to be a realistic option. What kind of monstrositor do you have anyway? ;)
 

wizzpig666

New Member
I'm using a widescreen laptop which displays it perfectly. I just wondered what such a small page would look like on a large desktop monitor, i guess a lot of black space underneath? cant remember the last time i sat in front of a desktop.
No big deal, just wondered if it was an option to consider for small pages.

Thanks for the reply :)
 
Top