I'm trying to make a unordered list, but it doesn't work. I think the problem comes from the css file
1 — ImgBB[
^]
html:
I have some other code there, but this is the part only for the list
<div class="container">
<h2>THE PERFECT BALANCE OF PERFORMANCE AND COMFORT</h2>
<p>We understand that wearability is primary for users. Whether you are - outside, in the woods or at home,our solutions make you
better at what you do with all-day comfort and versatility.</p>
</div>
<section>
<h2>We give you:</h2>
<ul>
<li>something</li>
<li>something 1</li>
<li>something 3</li>
<li>something 4</li>
</ul>
</section>
this is the whole css file:
*
{
margin: 0;
padding: 0;
font-family: 'Popins', sans-serif;
}
.header{
min-height: 100vh;
width: 100%;
background-image: linear-gradient(rgba(12, 12, 12, 0.514),
rgba(83, 83, 83, 0.288)), url(images/korica.jpg);
background-position: center;
background-size: cover;
position: relative;
display: flex;
align-items: start;
}
nav{
display: flex;
padding: 20px;
justify-content: space-between;
align-items: center;
flex-grow: 1;
}
.header img{
padding-top: 2%;
width: 260px;
}
.nav-links{
flex: 1;
text-align: right;
}
.nav-links ul li{
list-style: none;
display: inline-block;
padding: 8px 12px;
position: relative;
}
.nav-links ul li a{
color: white;
text-decoration: none;
font-size: 18px;
padding: 2px 4px;
}
nav ul li a:hover{
color: #e9d66b;
border-radius: 5px;
box-shadow: 0 0 5px #ffaf1a,
0 0 5px #ffb833;
}
nav ul ul{
position: absolute;
top: 100px;
border-top: 2px solid rgb(255,179,71);
opacity: 0;
visibility: hidden;
border-top:none;
}
nav ul li:hover>ul{
top: 40px;
opacity: 1;
visibility: visible;
}
nav ul ul li{
position: relative;
margin: 0px;
width: 150px;
float: none;
display: list-item;
border-bottom: 1px solid rgba(0,0,0,0,.3);
text-align: left;
}
nav ul ul li:hover ul {
border-top: none;
top: 0;
left: 100px;
}
.nav-links ul ul ul li a {
position: block;
margin-left: 10px;
top: 0;
}
.text-box{
width: 90%;
color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.text-box h1{
font-size: 60px;
}
.text-box p{
margin: 10px 0 40px;
font-size: 16px;
font-weight: 500;
color: white;
background: rgba(255, 255, 255, 0.096);
padding: 20px;
border-radius: 5px;
border-bottom: 1px solid rgba(255,255,255,0.0996);
border-right: 1px solid rgba(255,255,255, 0.0996);
box-shadow: var(--box-shadow);
}
.btn{
display: inline-block;
text-decoration: none;
color: white;
border: 1px solid white;
padding: 12px 34px;
font-size: 13px;
background: transparent;
position: relative;
cursor: pointer;
}
.btn:hover{
border: 1px solid #FF8C00;
background: #FF8C00;
transition: 1s;
}
.modes{
width: 80%;
margin: auto;
text-align: center;
padding-top: 100px;
}
h1{
font-size: 36px;
font-weight: 600;
}
.gif-col{
flex-basis: 50%;
border-radius: 10px;
margin-bottom: 30px;
position: relative;
overflow: hidden;
display: block;
margin-left: auto;
margin-right: auto;
}
.layer h3{
color: black;
opacity: 0;
transition: 0.5s;
}
.layer:hover h3{
bottom: 49%;
opacity: 1;
}
p{
color: #777;
font-size: 14px;
font-weight: 300;
line-height: 22px;
padding: 10px;
}
.row{
margin-top: 5%;
display: flex;
justify-content: space-between;
}
.modes-col{
flex-basis: 31%;
background: #e0be603a;
border-radius: 10px;
margin-bottom: 5%;
padding: 20px 12px;
box-sizing: border-box;
transition: 0.5s;
}
h3{
text-align: center;
font-weight: 600;
margin: 10px 0;
}
.modes-col:hover{
box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}
.container h2{
width: 80%;
margin: auto;
text-align: center;
padding-top: 50px;
}
.container p{
text-align:justify;
padding-top: 10px;
font-size: 16px;
font-weight: 300;
}
What I have tried:
at first I thought the problem was from section, but then I decided to try only the code for the unordered list in a new blank html file where everything turned out as it should. At the moment I think the problem comes from the css file