Forum Moderators: not2easy
margin: 10% 20% 20% 20%; <html>
<head>
<link rel="stylesheet" type="text/css" href="clothes.css"/>
<body>
<div class="big">
<div class="top">
<p> MENU </p>
</div>
<div class="content">
<p> CLOTHES [32] But I must explain to you how all this mistaken idea of denouncing of a pleasure and praising pain was
</p>
</div> <!--END CONTENT -->
<div class="down">
<p> cucu </p> <!-- END DOWN -->
</div>
<div style="clear:both;"></div>
</div> <!-- END BIG -->
</body>
</html> *{
margin: 0px;
padding: 0px;
}
html,body {
height: 100%;
background-color:rgb(238,233,233);
}
.big { /* div wich contains top, content and down divs */
margin: 10% 20% 20% 20%;
min-height:70%;
height:auto;
background-color:rgb(185,194,177);
}
.top {
min-height:10%;
background-color:red;
}
.down {
position:relative;
bottom:0%;
min-height:5%;
background-color:red;
}
.content {
min-height:60%;
height:auto;
background-color:green;
}
[edited by: tedster at 9:25 pm (utc) on May 8, 2013]
The vertical padding, border and margin of an inline, non-replaced box start at the top and bottom of the content area, and has nothing to do with the 'line-height'. But only the 'line-height' is used when calculating the height of the line box.