BrownKatUK Posted July 21, 2021 Posted July 21, 2021 Site URL: https://triangle-keyboard-t5hz.squarespace.com Hi - I am changing increase the overlay opacity on the top image on mobile only. This is the code I am using without success. @media screen and (max-width: 640px) { [data-section-id=“609aa62a18656e56660631b2”] .section-background .section-background-overlay { opacity: 0.3; }} If anyone can tell me what I am doing wrong that would be great. I am getting a syntax error on the [data.. ] section. Thank you. Password: WLAC
tuanphan Posted July 22, 2021 Posted July 22, 2021 use this code @media screen and (max-width: 767px) { [data-section-id="609aa62a18656e56660631b2"] .section-background-overlay { background-color: rgba(0,0,0,0.9) !important; } } 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!)
benkl Posted December 22, 2023 Posted December 22, 2023 tuanphan can you help me out on css with the same problem on my page: powerplatz.kleinws.de - password: theo2023 I just want that the header picture is on mobile with a grey overlay color. I tried this one: @media screen and (max-width: 767px) { [data-section-id="vc_row 344 row-container"] .section-background-overlay { background-color: rgba(0,0,0,0.9) !important; }
tuanphan Posted December 24, 2023 Posted December 24, 2023 @benkl Can you take a screenshot? 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!)
benkl Posted December 27, 2023 Posted December 27, 2023 Hi tuanphan thanks for responding. So i just want that on the mobile view there is a filter over the background picture . its difficult to read the text without it. But on desktop there should not be a filter
benkl Posted December 27, 2023 Posted December 27, 2023 So this is working: @media (max-width: 959px) { .main-container .row-container .row-parent { background-color: rgba(0,0,0,0.9) !important; } } but can you help me that it works only for the header container? the class for it called: vc_row 344 row-container
tuanphan Posted December 29, 2023 Posted December 29, 2023 @benkl use this CSS @media (max-width: 959px) { .vc_row[id="344"] .row-parent { background-color: rgba(0,0,0,0.9) !important; } } benkl 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!)
benkl Posted December 29, 2023 Posted December 29, 2023 tuanphan thank you so much - you are my hero today
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment