Jump to content

Giving last item in mobile navigation bar a border

Recommended Posts

Site URL: https://project351.org

Hello,

I am trying to differentiate the last item in our secondary mobile navigation bar ("Donate") by giving it a border/making it look like a button.

Look:

   border: 2px solid white;
   background: #004F9C;
   color: rgba(255,255,255,1);
   padding: 10px 12px

What I am struggling with is applying the formatting to the item I want to edit. I am trying this with no luck:

.Mobile-overlay-nav.Mobile-overlay-nav--secondary > a:last-of-type

Do you have any ideas of how I could change it?

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

Top Posters In This Topic

Top Posters In This Topic

12 hours ago, koala said:

Site URL: https://project351.org

Hello,

I am trying to differentiate the last item in our secondary mobile navigation bar ("Donate") by giving it a border/making it look like a button.

Look:

   border: 2px solid white;
   background: #004F9C;
   color: rgba(255,255,255,1);
   padding: 10px 12px

What I am struggling with is applying the formatting to the item I want to edit. I am trying this with no luck:

.Mobile-overlay-nav.Mobile-overlay-nav--secondary > a:last-of-type

Do you have any ideas of how I could change it?

Hi. It looks like you solved?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.