Craig456 Posted September 20, 2022 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
Solution Ziggy Posted September 21, 2022 Solution 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! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment