Hi, setting the height property of my div to some px value works fine, but when i set it to some sort of percent value it doesn't.
I mean:
<div style="height: 40%">Some text here</div>
so this should make my div be 40% of the height of my page...
I read that i need to set the parents elements height, so i set the body to 100% but this doesn't really seem to work...
Any suggestions?
I mean:
<div style="height: 40%">Some text here</div>
so this should make my div be 40% of the height of my page...
I read that i need to set the parents elements height, so i set the body to 100% but this doesn't really seem to work...
Any suggestions?