Question: here is my nav,. how do i make the menu bar with three horizontal lines as a drop down when on a small screen such

here is my nav,. how do i make the menu bar with three horizontal lines as a drop down when on a small screen such as an iphone.

About me

body {

margin: 0;

background-color: #FAF7F4;

}

ul.topnav {

list-style-type: none;

margin: 0;

padding: 0;

overflow: hidden;

background-color: #1E1E1E;

}

ul.topnav li {float: right;}

ul.topnav li a {

display: block;

color: white;

text-align: center;

padding: 14px 16px;

text-decoration: none;

}

ul.topnav li a:hover:not(.active) {background-color: #8D8D8D;}

ul.topnav li a.active {

background: #fd540b; /* For browsers that do not support gradients */

background: -webkit-linear-gradient(#fd540b, #f43e7f); /* For Safari 5.1 to 6.0 */

background: -o-linear-gradient(#fd540b, #f43e7f); /* For Opera 11.1 to 12.0 */

background: -moz-linear-gradient(#fd540b, #f43e7f); /* For Firefox 3.6 to 15 */

background: linear-gradient(#fd540b, #f43e7f); /* Standard syntax (must be last) */

}

#content{

margin:0;

padding:0;

color: black;

}

#container{

}

p{

padding: 2%;

font-family: 'Alegreya Sans SC','Actor',"Comic Sans MS","Times New Roman", Times, serif;;

font-size: 22px;

float: left;

}

#topHeader{

padding: 10px;

text-align: center;

clear: both;

}

h1{

text-decoration: underline;

}

img{

margin-top: 2%;

max-height: 140;

max-width: 13%;

animation: fadein 6s;

}

@keyframes fadein {

from { opacity: 0}

to { opacity: 1}

}

@media screen and (max-width: 600px){

ul.topnav li.right,

ul.topnav li {float: none;}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!