Wednesday, 4 November 2015

Basic use of div

<!DOCTYPE html>
<html>
<head>
<title>Layout</title>

<style>
p{
text-indent:10px;
text-align:justify;
}
.header {
    background-color:#0F0;
    color:#09F;
    text-align:center;
    padding:5px;
}
marquee{
border:solid;
background-color:#F00;
color:#00F;
height:60px;
padding:0px;
}
#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#menu ul li {
  float: left;
  display: inline;
}

#menu ul li a {
  display: block;
  width: 139px;
  height: 33px;
  border: 1px solid;
  text-align: center;
  line-height: 28px;
  text-decoration:underline;
  background-color:#CCC;
  color:#000;
}

#menu ul li a:hover {
background-color:#000;
color:#FFF;
}

#container {
    width:1270px;
margin:10 auto;
}

#section {
    width:826px;
height:735px;
    float:left;
    padding:10px;
background-color:#0FF;
}

#section1 {
background-color:#F9C;
height:735px;
padding:10px;
}

#footer {
    background-color:#CC0;
    color:black;
    clear:both;
    text-align:center;
    padding:5px;
}

</style>
</head>

<body>

<div id="container">

<div class="header">
<h1>Header</h1>
</div>

<div id="menu">
<ul>
<li><a href="layout.html">HOME</a></li>
<li><a href="layout.html">HTML</a></li>
<li><a href="layout.html">CSS</a></li>
<li><a href="layout.html">PHP</a></li>
<li><a href="layout.html">JQUERY</a></li>
<li><a href="layout.html">JAVA SCRIPT</a></li>
<li><a href="layout.html">AJAX</a></li>
<li><a href="layout.html">About Us</a></li>
<li><a href="layout.html">Contact Us</a></li>
</ul>
</div>
<marquee><h2>BUKC will remain close till monday.</h2></marquee>
<div id="section">
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 millioninhabitants.</p>
<p>
Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.</p>

<h2>Paris</h2>
<p>Paris is the capital and most populous city of France.</p>
<p>Situated on the Seine River, it is at the heart of the Île-de-France region, also known as the région parisienne.</p>
<p>Within its metropolitan area is one of the largest population centers in Europe, with over 12 million inhabitants.</p>

<h2>Tokyo</h2>
<p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
<p>It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family.</p>
<p>The Tokyo prefecture is part of the world's most populous metropolitan area with 38 million people and the world's largest urban economy.</p>
</div>

<div id="section1">
<h2>Tokyo</h2>
<p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
<p>It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family.</p>
<p>The Tokyo prefecture is part of the world's most populous metropolitan area with 38 million people and the world's largest urban economy.</p>
</div>

</div><!--container-->

<div id="footer">
Copyright é ComSouls.com
</div>
</body>
</html>

No comments:

Post a Comment