Jump to content

Codepen Code not working

Recommended Posts

  • Replies 2
  • Views 702
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Hi.

the situation is more complex in your live site because you have many more elements. The code you've written is working as expected but the layers you want to see are hiding behind other elements drawn by squarespace. 

To remedy this you need to bump up the z-Index of your sub menus. You've got a rule in your site css that looks something like this (which kicks in at wider "desktop" levels). just edit it as below to add a zindex, this is essentially a "bring to front" command.

@media (min-width: 800px)
.main-navigation ul ul {
    display: none;
    position: absolute;
    z-index: 100;
}

That should answer your question as you posed it.

 

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.