<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width , initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<style>
body {
font-family : "lato",sans-serif;
}
.sidenav {
height : 100 %;
width : 0 ;
position : fixed;
z-index : 1;
top : 0 ;
left : 0;
background-color : #ffdlla;
overflow-x : hidden;
transition : 0.5s ;
padding-top : 60px ;
}
.sidenav a{
padding : 8px 8px 8px 32px ;
text-decoration : none ;
font-size : 25px ;
color : white ;
display : block ;
transition : 0.3s ;
}
.sidenav a :havor {
color : black ;
}
.sidenav .closebtn {
position : absolute ;
top : 0 ;
right : 25px ;
font-size : 36px ;
margin-left: 50px ;
}
#main {
transition : margin-left .5s ;
padding : 16px ;
}
span {
font-size : 30 ;
cursor : pointer ;
}
</style>
<script type="javascript/text">
Function openNav(){
document.getElementById("mysidenav").style.width="250px";
document.getElementById("main").style.width="250px";
}
Function closeNav(){
document.getElementById("mysidenav").style.width="0px";
document.getElementById("main").style.width="0px";
}
</script>
</head>
<body>
<div id="mysidenav" class="sidenav">
<a href="#" class="closebtn" onclik= "closeNav()">×</a>
<a href="#"> Members </a>
<a href="#"> Custmer </a>
<a href="#"> About </a>
<a href="#"> Contact </a>
</div>
<div id="main">
<span onclik="openNav()"> ☰</span>
</div>
</body>
</html>