When you want to set the mega menu vertically, than use this Page Layout and you will easily be able to set the mega menu.
Include vertical-menu.js, vertical-menu.css, megamenu.js
If we want to drilldown pattern add in mega menu portion you have to include also jquery.drilldown.js
Copy html code of vertical-menu-main according to your requirement in this layout.
Finally, you can change the content according to your need.
<!-- Cod Box Copy begin -->
<div class="card-body">
<h5>Step 1</h5>
<p>Include vertical-menu.js, vertical-menu.css, megamenu.js</p>
<h5>Step 2</h5>
<p>If we want to drilldown pattern add in mega menu portion you have to include also jquery.drilldown.js</p>
<h5>Step 3</h5>
<p>Copy html code of vertical-menu-main according to your requirement in this layout.</p>
<h5>Step 4</h5>
<p>Finally, you can change the content according to your need.</p>
</div>
<!-- Cod Box Copy end -->