Jump to content

Add background to a mobile navigation item

Recommended Posts

Hi,

Im trying to add a solid color background block behind one of the navigation items on only the mobile version of my site. It works on desktop but for some reason not on mobile..

This is the CSS I have:

.header-nav-item a[href="/de/redirect"]

 { background-color: #A994FF !important;

   padding: .3rem 1rem;

   border-radius: .3rem

}
 

Does anyone have an idea ? 🤔

Link to comment
  • Replies 1
  • Views 111
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.