samantha2022 Posted October 28, 2022 Share Posted October 28, 2022 Hi! Looking to change the font in my header section to black on mobile only, to increase readability since it is on top of an image background. I have tried a few codes unsuccessfully. Thanks for your help! Sam Link to comment
Caroline_Smith Posted October 28, 2022 Share Posted October 28, 2022 (edited) Here is a code snippet that will accomplish that on mobile. However, I think it would be more beneficial to change the text to black in general since the background is very light all around (on all devices). //Start: Make text in Homepag ehero black on mobile @media(max-width: 550px) { [data-section-id="6339b4b3a8b2184f09f0f518"] { h1, h2, h3, h4, h5, h6, p, span { color: black; } } } //End: Make text in Homepag ehero black on mobile Edited October 28, 2022 by Caroline_Smith Feel free to email me with any customization inquiries or questions you may have! Free Squarespace Resources: DevTools Minicourse, 11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator 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