Craig456 Posted September 20, 2022 Share Posted September 20, 2022 (edited) Site URL: https://www.craigkleila.com/ Password is "password". On my homepage on mobile, I want to center the subtext under my H1 - "Grow your organic traffic and revenue with highly personalized SEO strategies that produce first-page results." However, I want to keep it left-aligned on desktop. How can I do this? Edited September 20, 2022 by Craig456 Link to comment
Solution Ziggy Posted September 21, 2022 Solution Share Posted September 21, 2022 You need to use a media query in the Custom CSS to target mobile (using screen max-width), and then target the text block with the block ID, and then set the text alignment to center: @media screen and (max-width:749px) { #block-yui_3_17_2_1_1660700494123_911821 { text-align:center !important; } } Let me know if that works for you! Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Craig456 Posted September 22, 2022 Author Share Posted September 22, 2022 That worked, thanks so much! 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