Tag Archives: Vertical Center

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: … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , | Leave a comment