I gave some styles in main menu by this selector (ul.nav-links > li:hover ) . But this also gets applied to submenu when i hover on main menu. But i want to give different style on menu and submenu. How do i do that? Here is my code Gist Link
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Add a navigation menu with a sub-menu | 2 | 521 | March 9, 2021 | |
CSS selectors (not related to any freeCodeCamp challenge)) | 7 | 245 | September 14, 2023 | |
Styling lists - targeting ul or li? | 3 | 551 | January 10, 2024 | |
Personal Portfolio help! How can I get rid of the color and underline that comes with the linked text in my navbar? Also the purple color once the text is clicked on? | 5 | 1339 | March 9, 2021 | |
Why this simple hover functionality is not working? Please help me | 6 | 786 | March 9, 2021 |