Hey guys, I'm starting to get a bit frustrated because I can't figure out why I am able to set the height of divs in percentage. I read on a website that setting the height of divs in percentage doesn't work unless it's a child div. So why am I able to set the height of elements in percent even when there is no parent div involved?
Here is how my css code looks:
html,body{
width:100%;
height:100%;
font-family:Verdana;
color:#fff;
backgroundd:#151515;
}
Can someone please explain why this is happening? I'm really curious to understand why percentage height works when it shouldn't, this doesn't seem right, does it?