nav not working on mobile

When the nav is in mobile mode, the background doesn't show https://codepen.io/RS_2009/pen/wvEmXgd?editors=1100
Rishit
CodePen
wvEmXgd
...
5 Replies
rishit
rishit2y ago
posted before but no reply
Jochem
Jochem2y ago
it can take a bit before people have a chance to respond what's happening is that you have a lot of position: absolute in your layout that you really don't need. That pulls the element out of flow, which means that it doesn't have an intrinsic height anymore I'd suggest removing honestly all the instances of position absolute and positioning stuff with just flexbox properties instead
Mannix
Mannix2y ago
as Jochem suggested use flex to layout stuff not position https://codepen.io/MannixMD/pen/jOvxqWL
rishit
rishit2y ago
ill hv to create this all over again but thanks
Jochem
Jochem2y ago
you might be able to bodge a fixed height on the UL, if you have to just get this done, but position: absolute; is really a last-resort type solution if you want to position something, especially if you want things to be responsive
Want results from more Discord servers?
Add your server