Hi there
This is my jsfiddle.net
http://jsfiddle.net/vngx/tyd5zkfk/
I want the div block should be center but height property is not working on this althogh width is working but height is not working
Hi there
This is my jsfiddle.net
http://jsfiddle.net/vngx/tyd5zkfk/
I want the div block should be center but height property is not working on this althogh width is working but height is not working
Percentage heights only work if the direct parent has a height set, or if the element is positioned. You need to add this in to make percentage heights work.
html,body{height:100%;}
Do realize though that restricting height to 50% means that any content exceeding this will overflow as is.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.