how can i align the left menu bar items with javascript and css?

  • Remove the display: flex from the <a> tags;
  • Add a display: flex !important, flex-direction: column and justify-content: flex-start to your <nav> tag;

Here’s an example:

jsfiddle.net/mdyvzx09/2

Feedback: adding linebreaks in your CSS code can improve its readability 🙂

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top