Jemi-code
@Jemi-codeAll comments
- @Jemi-codeSubmitted about 2 years ago
- @asagandaSubmitted over 2 years ago
Looking for opinions on how i implemented the nav dropdown with Javascript? Is there a better way with less code?
I received an HTML error that my div menu close in mobile isn't proper since i included it inside a ul parent and it would have to be an li however updating it to an li with the dev tools makes it lose it's js functionality somehow - any feedback would be appreciated
Thanks
@Jemi-codePosted over 2 years agoYes, there is a simpler way of doing it using just html. There is a tag called details tag(<details>) which helps to create drop down menus without having to code JS. I did this same challenge, is this is how I did my HTML.
<details> <summary>Features</summary> <ul class="feat-list"> <li class = "todo">Todo List</li> <li class = "cal">Calender</li> <li class = "rem">Reminders</li> <li class = "plan">Planning</li> </ul> </details>For the div menu close issue, try putting it outside the list but still within the nav and set the position to absolute
0 - @Jemi-codeSubmitted almost 3 years ago@Jemi-codePosted almost 3 years ago
Thanks a lot, I saw the issues but didn't know how to correct it.
0