DEV Community

Discussion on: Navigation Bar using CSS and JavaScript

Collapse
 
deathshadow60 profile image
deathshadow60

I find it disturbing that you'd even use JavaScript -- for ANYTHING -- on a menu like this, much less feel the need to use it to calculate the layout... something Flex or Grid can do with ease. If you have to resort to JS for layout, you need to learn more HTML and CSS.

Likewise all of these menus lacking the proper semantics of NAV, UL, and LI tags is doing no favors on the accessibility front.. but I guess that goes with the fafct that not a single one of these menus would meet accessibility minimums in terms of colour contrast, font faces, or font metrics.

Sorry to say that ALL of these seem to have deep-rooted problems in terms of accessibility usability, semantics, and every other basic concept of design and web coding.

Collapse
 
kiranrajvjd profile image
Kiran Raj R

Yes, you are right what you said about accessibility, usability, semantics... totally agreed.