Custom Home Page Nav Tweak
I'm trying to tweak my homepage nav bar but having no luck. I've configured it to be vertical (rather than horizontal like the rest of the site).
What I'm trying to do is change the size of the background behind each of the nav options so its just slightly larger, rather than have them all one uniform length. The CSS I'm currently using is -
.sm-page-widget-nav-toplink {
margin-bottom: 7px !important;
background: rgba(0, 0, 0, .5);
width: 108px;
padding: 4px 10px 4px 12px !important;
white-space: nowrap;
float:right;
I presume its something to do with the 'width' options but can't find how to make it follow the size of the text, 'auto' concertina's all the options up so they are no longer on a single line each...
Any help much appreciated!
Comments
Remove what you have and use this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Great stuff many thanks.
I do have one more question, on mobile view the 'menu' background stretches across the screen. What I'd like do is make it smaller without it aligning to the left (stay in the centre) , which it does with the code below, any ideas?
.sm-user-ui .sm-page-widget-nav-mobile .sm-page-widget-nav-mobile-header
{
border-radius: 10px;
width: 100px;
background: rgba( 0, 0, 0, 0.5) !important;
}
Thanks again
facebook - my facebook page please LIKE me!
Remove what you have and use this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
you're a star, thanks Mike
facebook - my facebook page please LIKE me!