I'm currently in the process of developing an asp.net core MVC web application with bootstrap. My goal is to create a sidebar and main content area within the layout. I've written the code below in a partial view, which is then included in _Layout.cshtml. Everything seems to be working fine, however, I want the main content (currently just placeholder text) to appear next to the sidebar instead of being pushed down below it.
https://i.sstatic.net/fs7Aa.png
Here is the desired layout:
https://i.sstatic.net/d3Ynx.png
Essentially, I want the sidebar on the left and the main content on the right, but as you can see in the image, the main content is currently displayed below the sidebar.
The HTML for the Sidebar:
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ff9d90908b8c8b8b8d9e8fbfcbd1c9d1cf">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" />
<div class="d-flex flex-column text-white bg-dark" style="width: 280px; height: 100vh;">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
<img class="img-fluid m-auto pt-sm-2" src="~/assets/img/Config.png" alt="Logo" style="height: 60px; width: 150px;" />
</a>
<div class="d-flex align-items-center text-light text-decoration-none">
</div>
</div>
<div class="container d-flex flex-column">
<main role="main" class="pb-3">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lacus viverra vitae congue eu consequat ac felis donec. Eros in cursus turpis massa tincidunt. Mattis enim ut tellus elementum.
Facilisi cras fermentum odio eu feugiat. Neque volutpat ac tincidunt vitae semper. Nulla pharetra diam sit amet nisl suscipit adipiscing. Lobortis feugiat vivamus at augue eget. At augue eget arcu dictum varius duis at consectetur. Et netus et malesuada
fames ac. Morbi tristique senectus et netus et. Et pharetra pharetra massa massa ultricies mi quis hendrerit dolor.</p>
</main>
</div>
Any suggestions on how I can position the main placeholder content alongside the sidebar instead of below it?