HTML:
<!– bottom bar
================================================== –>
<div class=”navbar”>
<a href=”” class=”active”><i class=”fa fa-map-marker”></i></a>
<a href=”” class=”active”><i class=”fa fa-phone”></i></a>
CSS:
/* ——————————————————————-
* responsive:
* bottom menu
* ——————————————————————- */
/* Place the navbar at the bottom of the page, and make it stick */
.navbar {
background-color: none;
overflow: hidden;
position: fixed;
bottom: 0;
width: 100%;
}
/* Place the navbar at the side of the page, and make it stick */
.navbar {
background-color: #000;
position: fixed;
bottom: 0;
right: 0;
width: 12%;
}
/* Style the links inside the navigation bar */
.navbar a {
float: center;
display: block;
color: #fff;
text-align: center;
padding: 20px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.navbar a:hover,
.fa:hoverĀ {
color: #ff6633;
}
/* Add a color to the active/current link */
.navbar a.active {
background-color: #000;
color: #fff;
}
/* ===================================================================
* Show navbar bottom menu only on mobile phone
*
* ——————————————————————- */
@media only screen and (min-width: 650px) {
.navbar {
display: none;
}
}
Leave a Reply
You must be logged in to post a comment.