IsabellaIanni Posted May 17, 2020 Share Posted May 17, 2020 Site URL: https://howtopullitoff.com/ Hi all, I need to have the mobile version of this theme turn the image opaque so the title will be more readable. I have the code to make the text permanent on the mobile version but it can't be read because the image behind it is not opaque. Below is a screenshot of what it should look like on the mobile version (the screenshot attached is of the mobile preview on the desktop when hovered over). This is the code I found to make the text permanent. I played with it a bit but can't find a way to make the whole image opaque. TIA!! @media screen and (max-width:640px) { .portfolio-text { opacity: 1 !important; } } This is the current setup where the text is not readable on the mobile version: This is the desired effect: Link to comment
tuanphan Posted May 17, 2020 Share Posted May 17, 2020 Add to Home > Design > Custom CSS @media screen and (max-width:767px) { a.grid-item .grid-image:after { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.4); } } you can change background overlay opacity (0.4) it is from 0 to 1 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.