Callan Posted November 12 Share Posted November 12 Hi sqaurespace community, I need some help please putting a semi-transparent colour behind the homepage header on mobile views. I can get it to work as wanted when i use the code inspector on Google chrome but not when entering the same code to the Squarespace page. Any assistance valued, thanks! The website is: https://www.firstpeoplesleading.com.au/ PW: Callan Mobile header CC I'm using is: @media only screen and (max-width: 640px){ .header { background-color: rgb(255, 255, 255, .5); Thanks, First screenshot shows how it looks with the above code showing in the header. The second screenshot shows what I'd like it to look like (less the code on the page). } } Link to comment
tuanphan Posted November 18 Share Posted November 18 Hi, The code appears in top of site because you added it to Code Injection, you should add it to Custom CSS Callan 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
Callan Posted November 20 Author Share Posted November 20 Thank you, I had tried that and I get no response to the mobile header code. See screenshots of what I have tried in the custom CSS section. I've tried the following: @media only screen and (max-width: 640px){ #collection-652f8e9dea52a52756969ded .header { background-color: rgb(255, 255, 255, .5); } } And @media only screen and (max-width: 640px){ .header { background-color: rgb(255, 255, 255, .5); } } Link to comment
Solution tuanphan Posted November 24 Solution Share Posted November 24 Use the code @media only screen and (max-width: 767px){ body#collection-652f8e9dea52a52756969ded header#header { background-color: rgba(255, 255, 255, 0.5) !important; } } 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