MakingWaves Posted February 5, 2021 Share Posted February 5, 2021 Site URL: https://prism-swan-send.squarespace.com/home I'm using this code to display a hover colour and text on image poster blocks for desktop only, but for some reason the text is still displaying on mobile. Can anyone help please? TIA https://prism-swan-send.squarespace.com/home p/w interiors //*Image Poster Block Hover Over*// @media only screen and (min-width: 834px) { .design-layout-poster .image-card-wrapper { visibility: hidden; opacity: 0; transition-duration: 0.5s; } .design-layout-poster:hover .image-card-wrapper { visibility: visible; opacity: 1; background-color:#787157; } } Link to comment
tuanphan Posted February 6, 2021 Share Posted February 6, 2021 Looks ugly on desktop.. Try this new code /* Image poster hover */ .design-layout-poster .image-card-wrapper { visibility: hidden; opacity: 0; transition-duration: 0.5s; } .design-layout-poster:hover .image-card-wrapper { visibility: visible; opacity: 1; background-color:#787157; } SodaCreekDigital and MakingWaves 1 1 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
MakingWaves Posted February 9, 2021 Author Share Posted February 9, 2021 Yeh, I was conscious of that. Your code is SOOO much better, thanks a million Tuan, as ever! 🙂 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