navbar 클래스에 fixed를 적용했는데 div와 nav의 위치를 바꿔도 적용이 되지않는데..
왜 적용이 되지 않는건지 알수있을까요..?
//html
<body>
<nav class="navbar navbar-light bg-light">
<div class="container-fluid">
<span class="navbar-brand">Navbar</span>
<button class="navbar-toggler" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<div
class="background-container"
style="height: 1000px; width: 100%; background-color: beige"
>
<div class="popup-bg"></div>
</div>
</nav>
</div>
</body>
.navbar {
position: fixed;
width: 100%;
z-index: 5;
}
//css
.navbar {
position: fixed;
width: 100%;
z-index: 5;
}
.popup-bg {
height: 500px;
width: 90%;
border-radius: 10px;
background-color: rgba(157, 190, 190, 0.534);
}/*# sourceMappingURL=css.css.map */