Options

Add border to thumbnail on hover and active

AceCo55AceCo55 Registered Users Posts: 950 Major grins
edited April 17, 2014 in SmugMug Customization
With only a miniscule knowledge of css (copy-paste king), I have ALMOST got what I want.

On hover over Smugmug gallery thumbnail, I want a 2px border (#fe7c00)
Then if I select a thumbnail (to view it as larger image on right), I want the border to change AND REMAIN as #f2f4f8 ... and remain so until another thumbnail is selected (and then THAT thumbnail has the white-ish border).

This is the code I am using:

/* Add border to thumbnails on hover and active */
.sm-user-ui .sm-tiles .sm-tile-content:hover {
border: 2px solid #fe7c00 !important;}
.sm-user-ui .sm-tiles .sm-tile-content:active {
border: 2px solid #f2f4f8 !important;}

It almost works. Hover works fine. When I click to select and make a thumbnail active, the border changes for a moment then goes away. So each time I click on a thumbnail, the border does goes white but it doesn't persist.

Can someone with css skills be able to see what I need to change to get the desired effect.
Thanks for any help - it is/will be much appreciated
My opinion does not necessarily make it true. What you do with my opinion is entirely up to you.
www.acecootephotography.com

Comments

Sign In or Register to comment.