My goal is to create a webpage layout like the one shown below:
https://i.sstatic.net/xn7UE.jpg
In this design, the red box represents a scrollable div whose size adjusts according to the content. The main background featuring the man and the navbar should remain fixed and non-scrollable.
Here is the code I am currently using:
<body id="header">
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: black;">
<a class="navbar-brand" style = "font-weight: 600; font-family: Arial, Helvetica, sans-serif;" href="#">Dr. Lim Wee Chai</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" style = "font-weight: 600; font-family: Arial;" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">Philosophies & Values</a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">Lifestyle</a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">Top Glove</a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">Future Vision</a>
</li>
<li class="nav-item">
<a class="nav-link" style = "font-weight: 500;" href="#">Videos</a>
</li>
</ul>
</div>
</nav>
<br>
</body>
Looking for assistance to implement this design!