Я пытаюсь заставить боковую панель складываться под навигационной панелью, однако не могу заставить боковую панель перестать перекрывать верхнюю часть навигационной панели.Нижний колонтитул в порядке по какой-то причине.Я бы хотел, чтобы боковая панель располагалась под панелью навигации и располагалась слева от веб-страницы.Я использую конфигурацию начальной загрузки 4, как указано в заголовке.
<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<style>
.navbar{
overflow: hidden;
background-color: #d0f0c0;
}
#navbar a {
float: right;
display: block;
color: #708090;
text-align: center;
padding: 14px;
text-decoration: none;
}
#lower{
display: block;
margin: auto;
position: relative;
}
.sidenav {
height: 100%;
width: 160px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #f0e0c0;
overflow-x: hidden;
padding-top: 15%;
display: block;
margin: auto;
}
.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
}
.sidenav a:hover {
color: #f1f1f1;
}
.main {
margin-left: 160px;
padding: 0px 10px;
}
.container:before,
.container:after {
content: "";
display: table;
}
.container:after {
clear: both;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
</style>
</head>
<body>
<div class="container-flex">
<header class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div id="navbar">
<div class="navbar-brand" style="cursor: pointer; float: right;">
</div>
</div>
</div>
</header>
</div>
<div class="container-flex" style="height: 85%; padding: 0;">
<%= yield %>
</div>
</body>
<div class="container-flex">
<div class="sidenav">
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
</div>
</div>
<div class="navbar fixed-bottom" style="height: 10%;">
</div>
</html>