I've been working on creating a responsive layout similar to the image using Bootstrap 4, but I'm encountering some issues. Specifically, I'm having trouble making the sidebar and bottom bar fixed, as well as adjusting the size of the bottom bar. Additionally, I need both the main content and sidebar to have individual overflow scrolling.
- fixed top nav bar >done
- fixed side bar
- fixed bottom bar > done
- bottom bar size should be same as main body
Expected output https://i.sstatic.net/DCvob.png
Here is my progress so far:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Document</title>
</head>
<style>
html,
body {
height: 100%;
}
</style>
<body>
<!-- Top Nav Bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">logo</a>
</nav>
<!-- Main Body -->
<div class="container-fluid h-100" >
<div class="row h-100">
<!-- Left Body -->
<div class="col-sm-10" style="background-color: #F0F2F5;">
<div class="container-fluid" style="margin-top:80px">
<h1>some text</h1>
<h1>some more text</h1>
</div>
</div>
<!-- Side Nav Bar -->
<div class="col-sm-2 border" style="margin-top:55px;" >
<h5>list</h5>
<hr>
<h1>some text</h1>
</div>
</div>
</div>
<!-- Bottom Player -->
<nav class="navbar fixed-bottom navbar-dark bg-dark" >
<div class="container" style="width: 50%;height: 40px;">
</div>
</nav>
</body>
</html>