Why is nav not selected? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Why is nav not selected?

This is a code I created. I am trying to make the nav bar a set height, but nothing I do to the CSS changes the nav height or color. I am specifically trying to set a background color for the nav and set a min height for the nav bar. Please note I have made things similiar to this before, so that is why I am so confused. https://code.sololearn.com/WMP74Q9oeCPc/?ref=app

17th Aug 2018, 8:37 PM
Tim Palmer
Tim Palmer - avatar
1 Answer
+ 1
Tim Palmer Use "px" instead of "%" nav { height:50px; width:100%; }
17th Aug 2018, 11:02 PM
Dlite - avatar