Problems with image shadows and borders
ivegotyourpicture.com
Registered Users Posts: 32 Big grins
I'm having some problems getting the borders and shadows to work like I want them to. I've found several posts about doing this, and have tried several combinations, but can't get it just right.
Here's what I'm trying to accomplish (I'm using the SmugMug Theme):
And, when I add the shadow to the gallery and folder images, they also are appearing on the thumbnails, but not in the shape of the thumbnail images. The shadow is appearing as a square, regardless of the shape of the thumbnail image (I'm using "Auto" for Thumbnail size).
Below is the code I've been working with. If I remove the border code (or put it below the shadow code), the shadows work (except the thumbnail shadow is wrong as I mention above).
Can someone help me work through the conflicts, and also figure out why the shadows on the thumbnails is wrong (i'm ok with not having shadows on the thumbnail and only the border; but would accept the shadows if they worked correctly).
My site is www.ivegotyourpicture.com
Thanks!
Here's what I'm trying to accomplish (I'm using the SmugMug Theme):
- when viewing images in the gallery, I want a border around each thumbnail and the main image.
- when the mouse is hovered over the main image, I want a shadow to appear
- when viewing images of Galleries and Folders I want a shadow around each image with and without hover (different colors)
And, when I add the shadow to the gallery and folder images, they also are appearing on the thumbnails, but not in the shape of the thumbnail images. The shadow is appearing as a square, regardless of the shape of the thumbnail image (I'm using "Auto" for Thumbnail size).
Below is the code I've been working with. If I remove the border code (or put it below the shadow code), the shadows work (except the thumbnail shadow is wrong as I mention above).
Can someone help me work through the conflicts, and also figure out why the shadows on the thumbnails is wrong (i'm ok with not having shadows on the thumbnail and only the border; but would accept the shadows if they worked correctly).
My site is www.ivegotyourpicture.com
Thanks!
/*-----------Begin Add a border around the thumbnails and photo ------------ */ /* Add 1 pixel border around the thumbnails and photos */ .sm-user-ui .sm-gallery-smugmug .sm-image { border: 1px solid #E3E3E3; padding: 0px; } /* Set the overflow of the images to be visible so the border actually displays properly */ .sm-user-ui .sm-gallery-smugmug .sm-tile-content { position: relative; display: block; overflow: visible; /*-----------End Add a border around the thumbnails and photo ------------ */ /* Begin Shadows */ .sm-tile .sm-tile-content:hover { box-shadow: 5px 5px 3px #FFF !important; } .sm-tile .sm-tile-content:hover { box-shadow: 5px 5px 3px #888 !important; } /* End Shadows */
0
Comments
My Website index | My Blog
Good luck
Lille Ulven
http://www.dgrin.com/showthread.php?t=253474
My Website index | My Blog
I do get a certain feeling that the subform for feature requests really is not about smug implementing them but more about users discussing them in more detail than what is done on the feature request page...
Have a great weekend
Lille Ulven
Here's what it looks like with my code (a shadow on hover). You can see that the shadow isn't the same size as the image. All the images are different sizes, because I used "Auto" for thumbnail sizes.
Here's the same image with your code... you can see the same problem. The border is square, but the image isn't.
I've got the shadow working like it want in the other locations, but can't get this one figured out.