Here\’s my situation: I\’m trying to make a page with two DIVsfilling whole page (height 100%, width 50% each). Also, the content in the DIVs is to be vertically aligned to middle.
Is there an easy way to achieve this without hacks or javascript?
I\’ve tried body,html{height:100%;} .mydiv {display:table-cell;height:100%;vertical-align-middle}
but that doesn\’t work…and with that code, i have to specify width in pixels instead of percentage





Rating:
The post html – vertical-align in div with height 100% appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/html-vertical-align-in-div-with-height-100.html
No comments:
Post a Comment