Brscn
Centipat
- Katılım
- 5 Eylül 2022
- Mesajlar
- 23
- Çözümler
- 1
Daha fazla
- Cinsiyet
- Erkek
Navbar'a fixed vermeye çalışıyorum ama olmuyor, diğer elemanlara verebiliyorum ama Navbar'a bir türlü olmuyor.
CSS:
*{
font-size: 10px;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
height: 10000px;
}
/* navbar */
.navbar{
background-color: rgb(205, 205, 205);
opacity: 75%;
display: flex;
padding: 2.5rem;
height: 7.5rem;
justify-content: space-between;
position: fixed;
}
#logo_png{
height: 6.4rem;
width: 12.8rem;
}
.options{
display: flex;
justify-content: space-between;
}
.option{
margin-right: 2rem;
padding: 2rem;
font-size: 2rem;
color: gray;
text-decoration: none;
}
.option:hover{
opacity: 100%;
color: black;
}