mercredi 23 avril 2014

Full height class doesnt make div the full height


Vote count:

0




This is my code: http://ift.tt/1rjrKfE


HTML:



<div id="main">
<div id="header" class="fullheight">
<div id="nav">Test</div>
Nav
</div>
<div id="content">
Hello
</div>
</div>


CSS:



*{padding: 0px; margin: 0px;}
#main{
background-color: #3B2F63;
background-image: -webkit-radial-gradient(50% top, rgba(84,90,182,0.6) 0%, rgba(84,90,182,0) 75%),-webkit-radial-gradient(right top, #794aa2 0%, rgba(121,74,162,0) 57%);
background-repeat: no-repeat;
background-size: 100% 1000px;
color: #c7c0de;
margin: 0;
padding: 0;
}

#header { }
#content{background-color: white;}

.fullheight{
display: block;
position: relative;
height: 100%;
}


With this code, why isn't the gradient area extending the full height of the window?



asked 1 min ago

Jimmy

1,596





Aucun commentaire:

Enregistrer un commentaire