Wednesday 21 December 2016

HTML FORM LAYOUT USING DIV


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>my webpage</title>
<style>
*{
    margin:0px;
    padding:0px;
}
.wrap{
    width:960px;            
    height:auto;
    border:1px solid red;
}
.header{
    height:100px;
    background: #21618c;
}
.nav{
    height:50px;
    background: #1abc9c;
}
.container{
    background: #f9e79f ;
}
.left{
    width:30%;
    height:250px;
    float:left;
    background: #f39c12 ;
}
.right{
    width:70%;
    height:250px;
    float:left;
}
.clear{
    clear:both;    // Clear Both will clear floating from both sides.
}
.footer{
    height:80px;
    background: #1abc9c;
}
</style>
<head>
<body>
<FONT COLOR="WHITE">
    <div class="wrap">
        <div class="header"><p> THIS IS HEADER  <p align = "middle"><a href=index.html>HOME</a> |
<a href=contact.html>CONTACT</a> |
<a href=about.html>ABOUT</a></p></p></div>
       
        <div class="nav"></div>
        <div class="container">
            <div class="left"><p> THIS IS LEFT CONTAINER</p> </div>
           
            <div class="right"><p> THIS IS RIGHT CONTAINER</p></div>
           
            <div class="clear"></div>
        </div>
        <div class="footer"> <p> THIS IS FOOTER</p></div>
       
    </div>
    </div>
    </FONT>
</body>
</html>

No comments:

Post a Comment

Oracle Reserved Words

Oracle  Reserved Words The following words are reserved by Oracle. That is, they have a special meaning to Oracle and so cannot be redefi...