Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

FLexbox Dropdown Menu is making Sub categories Stand in a Line Instead of Being Stacked [closed]

$
0
0

I have a problem with this website I been working on

I want the navigation dropdown to look organized with the subcategories that are under the main categories, stacked on top of each other, without affecting the navigation bar, but right now the subcategories are in a line/horizontal mode and they go off-screen in the dropdown menu.

Bad dropdown:

enter image description here

good dropdown:

enter image description here

I was tryna figure out the issue and I found out that when I comment out the "display flex" under ".navbar .main-menu ul" and padding under ".navbar ul li a" in CSS, the dropdown menu gets fixed, but the navigation bar gets messed up. How do I fix this?

The issue is here:

.navbar .main-menu ul {    display: flex;}.navbar ul li a {    padding: 32px 20px;    display: block;    font-weight: 600;    transition: 0.2s;}

Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>