How to position the sidebar in bootstrap

Hello

How to position the sidebar on the left or right the main content? Is there any class for it on bootstrap?

I couldn’t find anything related to it on the web.

my code:

@inherits LayoutComponentBase

<h3>SaeedLayout</h3>

<nav>

    <saeedmenu />

</nav>

<div class="sidebar bg-primary " style="width:25%;">

</div>

<div class="main">

    <div class="content px-4">
        @Body
    </div>

</div>

thanks

1 Like