# CSS for Page Layout

In 
CSS
Published 2022-12-03

This tutorial explains to you how we can place things into HTML pages using CSS and how we can organize HTML page using CSS.

Here we have an example :

<style>
div.container {
    width: 100%;
    border: 1px solid gray;
}
 
header, footer {
    padding: 5px;
    color: #b3ffe6;
    background-color: green;
    clear: left;
    text-align: center;
}
 
nav {
    float: left;
    max-width: 200px;
    margin: 1;
    padding: 1em;
    border-right: 1px solid gray;
    border-bottom: 1px solid gray;
}
 
nav ul {
    list-style-type: none;
    padding: 0;
}
 
.selected{
    list-style-type: none;
    color: #ff4dd2;
    padding: 0;
}   
nav ul a {
    text-decoration: none;
    color: #a64dff;
}
 
information {
    margin-left: 199px;
    padding: 1em;
    overflow: hidden;
}
 
information p{
    margin: 5px 5px 5px 5px;
}
</style>
 
<div class="container">
 
<header>
   <h1>Sales Details</h1>
</header>
   
<nav>
  <ul>
    <li><a class="selected">London</a></li>
    <li><a href="#">Paris</a></li>
    <li><a href="#">Tokyo</a></li>
  </ul>
</nav>
 
<information>
  <h1>London</h1>
  <p>We have different informations here. 1</p>
  <p>We have different informations here. 2</p>
</information>
 
<footer>Toys Factory</footer>
 
</div>

Here is the result :