I am very beginner with CSS and HTML. How to remove gaps around nav bar? Example image of the gaps around navbar.
I tried width and height attributes but it didn't work.
* {
text-decoration: none;
}
.navbar {
background: rgba(0, 0, 0, 0.6);
font-family: calibri;
padding-top: 5px;
padding-right: 15px;
padding-left: 15px;
top: 10;
left: 0;
witdth: 100%;
height: 130px;
box-sizing: border-box;
border-bottom: 1px solid #000;
background-size: cover;
widtth: cover;
height: cover;
}
.navdiv {
display: flex;
align-items: center;
justify-content: space-between;
}
li {
list-style: none;
display: inline-block;
}
li a {
color: white;
font-size: 18px;
font-weight: bold;
margin-right: 25px;
}
<body background="background.jpg">
<nav class="navbar">
<div class="navdiv">
<div class="logo"><a href="#"><img id="logo" src="views.png" width="12%" height="12%"></a></div>
<ul>
<li><a href ="#">Подписка</a></li>
<li><a href ="#">Кино</a></li>
<li><a href ="#">Сериалы</a></li>
</ul>
</nav>
Margin and Padding editing didn't work