Professional Documents
Culture Documents
Menu Comment Faire Sur Webdesign
Menu Comment Faire Sur Webdesign
Menu
1. HTML
2. CSS:
/* The navigation menu */
.navbar {
overflow: hidden;
background-color: #333;
}
/* Navigation links */
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Subnav button */
.subnav .subnavbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
/* When you move the mouse over the subnav container, open the subnav
content */
.subnav:hover .subnav-content {
display: block;
}