position:auto grumbles.

M

mark | r

anyone know hoe to centre a div both horizontally and vertically, i
currently use

#innerstage{position:absolute;top:50%;margin-top:-200px;left:50%;margin-left
:-370px;width:740px;z-index:20}

but am getting negative response from reviewers as the page doesn't decrease
in size gracefully(the content remains centred and disappears off the screen
at either edge instead of off to the left

margin:auto doesn't position vertically down the page:(

thanks

mark
 
E

e n | c k m a

margin:auto doesn't position vertically down the page:(

You shouldn't need to.

Although, it depends on what you're trying to do... and we don't know what
you're trying to do.

Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,082
Messages
2,570,589
Members
47,211
Latest member
Shamestone

Latest Threads

Top