Loading...
Adding extra pages and links
Adding a menu bar to your page
Add the nav
on the line after your closing </header>
tag:
<nav class="main-menu">
</nav>
Create the layout container for your menu bar
Add your page links, between the nav
tags:
<a href="index.html">Home</a>
<a href="pictures.html">Pictures</a>
<a href="videos.html">Videos</a>
Add some links to your menu bar
In your CSS, create a new rule:
.main-menu {
background: #FF0000;
}
Add a background to your nav, so you can see it
In your CSS, create two new rules:
.main-menu a {
background-color: #00FF00;
border-color: #00DD00;
font-weight: bold;
display: inline-block;
padding: 5px 10px;
}
.main-menu a:hover {
background-color: #00DD00;
color: #FFFFFF;
}
Style your links to look like buttons
Duplicate index.html to make pictures and videos pages
Loading...