how to VERTICALLY center a div within the body?

this is an unanswered thread from before…

i’m developing a really hard moment arranging divs on the page.

i appear to have worked most of it out, but still we can’t center/vertical-align this main div inside window/body.

on the web align divs without setting specific px as well as % margins for you to them

ps: why doesn’t WDF make it possible for css attachments

As part of your page div, put in place

Also, take out this height: 100%; for the reason that it’s useless.

setting the perimeter to 0 along with auto doesn’t have an effect on the positioning on the div.

taking out the " useless" height shrinks the div down to a sliver!

i’d like to see the #page div that they are centered on your screen/body…..
anyone have every other suggestions

Also, it’s because that you’re using absolute positioning to the div. If you place it at general, it might do the job.

anyone out there realize how to get a nested div in order to vertical-align: middle

Also my lord, I had been reading your question wrong the full time… I’m remorseful! Now I look like and idiot

Ok , i’ll offer this: http: //www. jakpsatweb. cz/css/css-vertical-center-solution. html

Not sure when you can vertically align with out percentages.

I’ll seek out it more available for you.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *