jenneb Posted August 2, 2022 Share Posted August 2, 2022 Site URL: https://www.elizabundledee.com/bitch-medicine-copy Hi! I have a Simple gallery section with captions set to appear on hover. In order for them to be visible I made the captions bold font. All appears just exactly how we want it on the desktop view but the caption is too large on the mobile view and gets cut off. I am open to style suggestions how to resolve this. Here is the code I have in place now: .gallery-caption p {text-align:center} .gallery-caption p {color: white; font-size: 1rem; font-weight:bold !important;} .gallery-caption { position: absolute; top: 0; left: 0; background: rgba(0,0,0,0.4); /* overlay color */ height: 100%; max-width: unset; padding: 0; opacity: 0; } .gallery-caption-wrapper { display: flex; align-items: center; /* center vertically */ justify-content: center !important;/* center horizontally */ } .gallery-caption-content { font-size: 2rem !important; /* caption font size */ color: white; /*caption font color */ } .gallery-grid-item { position: relative; } .gallery-grid-item:hover .gallery-caption { opacity: 1; } .gallery-caption-grid-simple { transition-delay: 0ms; } Any suggestions welcome. Thank you! Link to comment
tuanphan Posted August 3, 2022 Share Posted August 3, 2022 Add this CSS under @media screen and (max-width:767px) { p.gallery-caption-content { font-size: 14px !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jenneb Posted August 3, 2022 Author Share Posted August 3, 2022 This worked perfectly! Thank you so much! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment