Two columns : Two columns : Layout HTML CSS TUTORIALS


HTML CSS TUTORIALS » Layout » Two columns »

 

Two columns


 
<!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>Multi-column Layout</title>
        <style rel='stylesheet' type='text/css'>
div#container {
    border: 1px solid black;
    min-width: 600px;
    max-width: 1000px;
    position: relative;
    margin: 10px;
}
div#left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200px;
    background: rgb(234234234);
    padding: 5px;
    border-right: 1px solid black;
}
div#content {
    margin-left: 211px;
    background: white;
    border: 1px solid white;
    padding: 10px;
}
        
        </style>

    </head>
    <body>
        <div id='container'>
            <div id='left'>
                Left side column.
            </div>
            <div id='content'>
                <h4>Lorem Ipsum</h4>
                <p>
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec eu
                </p>
                <p>
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec eu
                </p>
            </div>
        </div>
    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Layout
» Two columns