Jump to content

Giving last item in mobile navigation bar a border

Recommended Posts

Posted

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?

  • Replies 1
  • Views 370
  • Created
  • Last Reply
Posted
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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.