Wednesday, 28 February 2018

Form Designing with Div tag using inline CSS in HTML

DivCSS.html
<!DOCTYPE html>
<html>
<head>
<style>
#header {
    background-color:black;
    color:white;
    text-align:center;
    padding:5px;
}
#nav {
    line-height:30px;
    background-color:#eeeeee;
    height:300px;
    width:100px;
    float:left;
    padding:5px;
}
#section {
    width:350px;
    float:left;
    padding:10px;
}
#footer {
    background-color:black;
    color:white;
    clear:both;
    text-align:center;
    padding:5px;
}
</style>
</head>
<body>
<div id="header">
<h1>City Gallery</h1>
</div>
<div id="nav">
Moradabad<br>
Bareli<br>
lucknow
</div>
<div id="section">
<h2>London</h2>
<p>Moradabad is a city, commissionary, and a municipal corporation in Moradabad district of Indian state of Uttar Pradesh.</p>
<p>It was established in 1625A.D. by Rustam Khan and is named after prince Murad Baksh, the son of the Mughal Emperor Shah Jahan.</p>
</div>
<div id="footer">
Copyright © CCSIT.ac.in
&copy All Right Reserved
</div>
</body>
</html>

0 comments

Post a Comment