[Basic Web Design] Part 5 - Styling web content (Navigation)

We are suing unordered list for navigation :

<nav>
<!--Navigation-->
<ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Me</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Contact Me</a></li>
</ul>
</nav>
Then give it some style :

ul {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style: none;
    }

ul li {
    display: block;
    }

ul li a {
    float: left;
    width: 200px;
    margin: 0 10px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    color: #666;
    background: #d2f4f5;
    border: 1px solid #ccc;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    }

ul li a:hover {
    color: #d2f4f5;
    background: #666;
    }
Done!

Write by Arafa Daming