Portfolio page - When my navbar collapses, the icon won't expand to show a menu

Portfolio page - When my navbar collapses, the icon won't expand to show a menu
0.0 0

#1

Hi everyone,

Link to my pen here: https://codepen.io/Fern444/pen/dOvOmj

I’m having a problem with my navigational bar. I have created it so that when it collapses, it turns into the classic menu icon, however, when I click on this, the icon doesn’t expand to show links to my pages.

I have been pulling my hair out trying to fix this! I have followed tutorials, read everything I can, watched videos etc, I have the feeling it might be something simple I’ve missed. Can someone please help me out?

Excuse the half finished page. I like to make sure all my code is working before I make it look nice =D

Thanks everyone!

Fern =)


#2

Hi Fern,

You forget to indicate your data-target is an ID (by adding “#” to the name). Please see the image. I added the “#” and it worked.


#3

Just finished mine also… if you wanna have a look:


#4

Oh my god, Silvio, you’re actually my hero! I can’t thank you enough for that. I was going nuts trying to work it out! Seriously, thank you so much for your help! :smiley:

Your portfolio is looking awesome by the way! :thumbsup: