Hi all, ex web designer here getting back into some coding after about 6 years away. I’m playing around with the W3Schools site tutorials and currently working on the sub navigation menu. My question is how do I get the menu to align to the right rather than left? I can use align: right; but that reverses the order of the menu and manually changing the order isn’t very elegant.
I’ve linked to the tryit page rather than posting the code here as it’s probably easier for anyone to provide a solution to try things out.
NOTE: I tend to avoid hiding menu item using display:none as that removes them from search engines and screen readers. It is better to move them off screen and then bring them back into view when needed. That will also allow for transitions and animations to be applied if needed as you can’t animate from display:none.