DarkHeartist Posted March 4 Share Posted March 4 (edited) Hello all, I have added CSS to create a blur effect on the header and it works great. However, it seems that the line "background-filter" is causing the mobile menu to stop functioning on android devices (it works fine on iphone). Specifically when you click the hamburger icon, it changes to an X but the menu itself won't expand. I have tried a few adjustments to the CSS including adding a -webkit-background-filter line but nothing seems to work unless I completely remove that line. Any ideas? My header code snippet is below. Website URL is www.adeptmedicalgroup.com Quote header { margin: 1vw; background: inherit!important; background-color: rgba(255, 255, 255, .3)!important; backdrop-filter: blur(8px)!important; border-radius: 45px } Edited March 4 by DarkHeartist Link to comment
Solution tuanphan Posted March 7 Solution Share Posted March 7 You can consider exclude code on mobile only by changing the code to this @media screen and (min-width:992px) { header#header { margin: 1vw; background: inherit!important; background-color: rgba(255, 255, 255, .3)!important; backdrop-filter: blur(8px)!important; border-radius: 45px } } I also change header to header#header, because "header" appear on both Site Header and Summary Block Header 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
MJ_ Posted March 11 Share Posted March 11 Thank you! It helped with the menu opening, but now on mobile the header is solid and no longer blurred and faded. Is there a way to do both? Link to comment
tuanphan Posted March 14 Share Posted March 14 This code will conflict with mobile menu backdrop-filter: blur(8px)!important; so if you want to keep blurred on both mobile + desktop, I have no idea to fix problem 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
Create an account or sign in to comment
You need to be a member in order to leave a comment