Height and overflow : height : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » height »

 

Height and overflow


 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>height</title>
        <style rel='stylesheet' type='text/css'>
div#wrapper {
    border: 1px solid pink;
    background: gold;
    width: 130px;
}
div#box {
    margin: 5px;
    border: 5px solid red;
    background: yellow;
    padding: 5px;
    height: 100px;
}
div#inner {
    background: white;
    text-align: justify;
}        
        </style>
    </head>
    <body>
        <div id='wrapper'>
            <div id='box'>
                <div id='inner'>
                   p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/> 
                    vp<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>
                    p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>
                   p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>p<BR/>
                </div>
            </div>
        </div>
    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» height