sneather Posted May 18, 2021 Share Posted May 18, 2021 (edited) I've applied the CSS below (I believe by tuanphan) to my site, to force the (desktop) hover text to always show on mobile. However, while it seems to do as indicated, on my iPhone. When I view the same test site on my iPad, it fails to show the hover text. I'm entirely new to any form of CSS, so I don't know this from that. What might I be doing wrong? Thanks! @media screen and (max-width: 640px) { .tweak-portfolio-grid-overlay-show-text-after-hover .portfolio-grid-overlay .grid-item:hover .portfolio-text,.tweak-portfolio-grid-overlay-show-text-after-hover .portfolio-grid-overlay .grid-item .portfolio-text { opacity:1 !important } .portfolio-overlay { opacity: .35 !important } } Edited May 18, 2021 by sneather Link to comment
sneather Posted May 18, 2021 Author Share Posted May 18, 2021 Quick update... I messed around with the "max-width" by changing it to 1024px. That enabled the forced text appearance on my iPad Pro - in vertical (portrait) orientation. The moment I rotated the device horizontal, the text disappeared - presumably because the pixels exceeded the max. Is there a better solution than just CSS for pixel width? Obviously, if I increase that max width too far, then I'll invariably trigger that always-on text for visitors' desktop / laptop monitors, which I DON'T want. Link to comment
tuanphan Posted May 19, 2021 Share Posted May 19, 2021 to target landscape, use this @media screen and (max-width:1024px) and (orientation:landscape) {CSS} 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment