Options

Change background color of one item in nav bar

sabistarrsabistarr Registered Users Posts: 6 Beginner grinner
edited May 8, 2016 in SmugMug Support
hello - I have created a link to another site and need to design a button for my smug mug site. I thought the easiest thing to do was pop in another nav bar, have one item in it, and style it. Ha. Not so easy. Is it possible to change the background of this nav bar without changing anything on the original nav bars?

I'm using this CSS to change the color but all menu items are being affected:

.sm-page-widget-nav a
{
background-color: #9932CC !important;
padding: 7px 7px 7px 7px !important;
}


Appreciate any ideas!
Thank you.

Comments

  • Options
    Lille UlvenLille Ulven Registered Users Posts: 567 Major grins
    edited May 8, 2016
    It could be possible, in case your link has also an ID. Then you could address it not only by the classes used but by the ID.

    But please add a link to your site into your signature here, that way we can have a look and help you out way better :)

    Best of luck

    Lille Ulven
    https://www.lilleulven.smugmug.com - The Photos of my travels
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited May 8, 2016
    I did it by using the link.

    .sm-page-widget-nav-toplink a[href*="/Public-Site-Index"] {color:gold !important;}
    .sm-page-widget-nav-toplink a:hover[href*="/Public-Site-Index"] {color:yellow !important;}
    .sm-page-widget-nav-toplink a[href*="/Family-Search"] {color: #666; font-style:italic;}

    You could also use the individual widget class name to target only a specific menu widget,
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    sabistarrsabistarr Registered Users Posts: 6 Beginner grinner
    edited May 8, 2016
    Awesome, thank you!

    www.tammyloverdos.com
Sign In or Register to comment.