Fabster Posted May 19, 2020 Share Posted May 19, 2020 Hi there, I am adding a few CSS bits to a gallery of images I have on my Hishimoto template, but I think I've messed up with something 😅 I wanted the title appear when hovering on an image in the slide. So I added this CSS code: /* even though they are turned on, hide the image caption */ .collection-type-gallery #slideshow .slide.sqs-active-slide[data-type="image"] .image-description { opacity: 0 !important; } /* bring the opacity back, only on image hover */ .collection-type-gallery #slideshow .slide.sqs-active-slide[data-type="image"]:hover .image-description { opacity: 0.85 !important; } @media only screen and (min-width: 801px) { .slide img { border-left: 200px solid; border-right: 200px solid; border-color: white !important; } } @media only screen and (max-width: 639px) { .slide img { border-bottom: 200px solid; border-color: white !important; } } But, cause I added bigger borders to the images in order to get more space between each other, the title is now too wide (I want it to match the width of the specific image). See screenshot and thank you! 🙏 Link to comment
tuanphan Posted May 20, 2020 Share Posted May 20, 2020 Can you share link to page in screenshot? Difficult to fix the code without checking slide code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Fabster Posted May 20, 2020 Author Share Posted May 20, 2020 There you go! http://www.fabioforin.com/people/silver-portrait-photography Link to comment
tuanphan Posted May 25, 2020 Share Posted May 25, 2020 On 5/21/2020 at 12:04 AM, Fabster said: There you go! http://www.fabioforin.com/people/silver-portrait-photography Hi. It seems you solved? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Fabster Posted May 25, 2020 Author Share Posted May 25, 2020 Hi, I didn't. You see the semi-transparent bar with title of image place and year that appears if you select the image? That should match the width of the image - it's much wider. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.