Contact Blog About Produts Search





Vertical Mobile Navbar

This example demonstrates how a navigation menu on a mobile/smart phone could look like.

Click on the hamburger menu (three bars) in the top right corner, to toggle the menu.


.topnav {
overflow: hidden;
background-color: #616161;
text-decoration: none;
line-height: 50px;
position: relative;
}

.topnav a {
background-color: rgba(0,0,0,0.0);
display:block;
color: #f2f2f2;
font-size: 150%;
text-decoration: none;
line-height: 50px;
}

.topnav a:hover {
background-color:white;
color: #2196f3;
}

.topnav a.active{
background-color: #38516f;

}
@media screen and (max-width: 600px) {
.topnav input[type=text] {
padding: 0px;
margin-top: 0px;
font-size: 150%;
border: none;
}

.topnav .search-container button {
float: right;
padding: 0px;
margin-right: 0px;
background: #ddd;
font-size: 17px;
border: none;
cursor: pointer;
}

.topnav .search-container button:hover {
background: #ccc;
}

.topnav a, .topnav input[type=text], .topnav .search-container button {
float: none;
display: block;
text-align: left;

margin: 0;
}
.topnav input[type=text] {
border: 1px solid #ccc;
}

.topnav.responsive a {
float: none;
text-align: right;
}}