Ask coding questions

← Back to all posts
Reordering Menu Lists with Float in CSS
AlexHouston (1)

How do I reorder the menu items to suit the float in CSS without having to change the order of classes in the html index please?

HackermonDev (2008)

Can you provide an html repl?

AlexHouston (1)

@PDanielY Html code below, thanks for responding. I had to reorder them in the html so they presented as home, gallery, signup options in that order

<body> <header> <a href="index.html"> <h2 id="logo">Love Running</h2> </a> <nav> <ul id="menu"> <li> <a href="#">Sign Up</a> </li> <li> <a href="#">Gallery</a> </li> <li> <a class="active" href="index.html">Home</a> </li> </ul> </nav>