After creating a WordPress menu and displaying it in the header with a total of 6 pages or menu items, I now want to split the menu so that 3 items appear on the left side and the other 3 on the right. However, my lack of knowledge in stylesheet styling is hindering me from achieving this division. Below is the code for the header:
<nav class="navbar navbar-expand-lg" style="background: #00C9C9;padding: 20px;">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<?php
wp_nav_menu( array(
'theme_location' => 'my-custom-menu',
'depth' => 2,
'container' => 'div',
'menu_class' => 'navbar-nav mr-auto',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'list_item_class' => 'nav-item',
'link_class' => 'nav-link m-2 menu-item nav-active'
)
);
?>
</ul>
</div>
</div>
</nav>