I just created a navbar using html and css, but I want to add a small logo (clickable) on the left of my navbar to make it look better. I want to ask also how to set the navbar sticky on the page. Thank you for your help! I will write the code below.
*{
padding: 0;
margin: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
body{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-image: linear-gradient( 89.8deg, rgba(222,74,74,1) 4.7%, rgba(30,29,29,1) 120.3% );
}
nav{
background:rgb(53, 66, 185);
height: 70px;
width: 100%;
}
nav ul{
float: right;
margin-right: 20px;
}
nav ul li{
display: inline-block;
line-height: 80px;
margin: 0 5px;
}
nav ul li a{
color: white;
font-size: 17px;
text-transform: uppercase;
padding: 7px 13px;
border-radius: 7px;
}
a.active, a:hover{
background: turquoise;
transition: .5s;
}
<body>
<nav>
<ul>
<li> <a href="link">HOME/BIGLIETTERIA</a></li>
<li> <a href="link">FILM</a></li>
<li> <a href="link">DOVE SIAMO</a></li>
<li> <a href="link">INFO E REGOLAMENTO</a></li>
<li> <a href="link">ACCEDI/REGISTRATI</a></li>
</ul>
</nav>
</body>