Shadow Box for Homepage
BillBassPhoto
Registered Users Posts: 18 Big grins
I am trying to modify some CSS code that SmugMug support provided me on my SmugMug homepage. I want the images in the homepage carousel to be in a shadow box like the on this page https://www.bassinteriorswoodlands.com but with a black border instead of gold. I like more 'curved' style shadow as compared to the one I have now which just drops down and to the right.
Below is the current CSS code I am using. What do I need to modify to get this changed to be like the one I want?
.sm-tile-content {
overflow: visible;
}
.sm-tile-single.sm-tiles-uncropped .sm-image {
-webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
-moz-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
filter: progid:DXImageTransform.Microsoft.Shadow (Color='000000', direction='3', strength='3');
_filter: none;
}
.sm-tile-limit-both {
-webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
-moz-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
filter: progid:DXImageTransform.Microsoft.Shadow (Color='000000', direction='3', strength='3');
_filter: none;
}
Thanks.
Bill
Below is the current CSS code I am using. What do I need to modify to get this changed to be like the one I want?
.sm-tile-content {
overflow: visible;
}
.sm-tile-single.sm-tiles-uncropped .sm-image {
-webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
-moz-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
filter: progid:DXImageTransform.Microsoft.Shadow (Color='000000', direction='3', strength='3');
_filter: none;
}
.sm-tile-limit-both {
-webkit-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
-moz-box-shadow: 3px 3px 6px rgba(0, 0, 0, .5);
filter: progid:DXImageTransform.Microsoft.Shadow (Color='000000', direction='3', strength='3');
_filter: none;
}
Thanks.
Bill
0
Comments
Not sure if I can help, but I (or one of the helpers) first need your website.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
They do some neat stuff. They are using a custom
png
shadow to display those "corners". You will need to upload that to your site and then copy the image url and replace the 'shadow-image-here`.Then remove the code you used 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
/**
* Slideshow
***************************************************/
.sm-user-ui .sm-tile-content {
overflow: visible;
width: 95%;
border: 2px solid black;
box-shadow: 0px 1px 3px rgba(0, 0, 0, .5);
}
.sm-user-ui .sm-tile-content:after {
content: "";
position: absolute;
top: 100%;
bottom: -30px;
width: 165px;
right: -20px;
background: url(https://www.smugmug.com/gallery/n-s72pfc/i-xFqXLbL) no-repeat 100% 0;
}
.sm-user-ui .sm-tile-content:before {
content: "";
position: absolute;
top: 100%;
bottom: -30px;
width: 165px;
left: -20px;
background: url(https://www.smugmug.com/gallery/n-s72pfc/i-xFqXLbL) no-repeat 0 0;
}
/**
* Slideshow
***************************************************/
.sm-user-ui .sm-tile-content {
overflow: visible;
width: 95%;
border: 4px solid white;
box-shadow: 0px 1px 3px rgba(0, 0, 0, .99);
}
.sm-user-ui .sm-tile-content:after {
content: "";
position: absolute;
top: 100%;
bottom: -30px;
width: 165px;
right: -20px;
background: url(https://www.smugmug.com/gallery/n-s72pfc/i-xFqXLbL) no-repeat 100% 0;
}
.sm-user-ui .sm-tile-content:before {
content: "";
position: absolute;
top: 100%;
bottom: -30px;
width: 165px;
left: -20px;
background: url(https://www.smugmug.com/gallery/n-s72pfc/i-xFqXLbL) no-repeat 0 0;
}
/*Hide entire "Buy" button at top*/ .sm-gallery-cover-buy-button {display:none;}
/*Hide the "Buy Photos" text*/ .sm-gallery-cover-buy-button span:nth-of-type(1) { display: none; }
/*Hide the "From this gallery option"*/ .yui3-menu-children #BuyPhotos {display:none;}
Thank you Mike for your assistance.
Sorry, I've been off line for awhile.
In order for this to work, you need the URL of the image. Use the Share Button to copy the photo's URL: https://help.smugmug.com/share-my-photos-SJ4mxxD1NHM
You just need "Photo Only".
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
If you use the original size (220px x 26px) and add that to your HOME PAGE CSS ONLY, this will work.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk