knoble07 Posted October 25, 2020 Share Posted October 25, 2020 Site URL: https://halibut-asparagus-lxxs.squarespace.com/ This seems like it should be simple but the code I tried didn't work so I'm coming here! I would like all text on mobile only to be centered aligned, as well as any buttons. Here is the code I tried for the text: @media screen and (max-width: 640px) h1, h2, h3, p, { text-align: center !important; } Any help would be super appreciated! Link to comment
creedon Posted October 25, 2020 Share Posted October 25, 2020 Please give is the site-wide password so we can take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
knoble07 Posted October 25, 2020 Author Share Posted October 25, 2020 Quote @creedon pw is karazyness Link to comment
knoble07 Posted October 25, 2020 Author Share Posted October 25, 2020 Found this solution! Still would like all images and buttons to also align... // all text @media only screen and (max-width: 480px) { p, H1, H2, H3 { text-align: center; }} Link to comment
knoble07 Posted October 25, 2020 Author Share Posted October 25, 2020 (edited) On a roll - this centered the buttons: @media(max-width: 1220px) { .sqs-block-button .sqs-block-button-container--left { text-align: center; } } Edited October 25, 2020 by knoble07 Link to comment
creedon Posted October 25, 2020 Share Posted October 25, 2020 A piece at a time. This should take care of centering the mobile menus. .Mobile-overlay-folder-item, .Mobile-overlay-nav-item { text-align: center; } Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
johnpaulstuthridge Posted March 20, 2023 Share Posted March 20, 2023 On 10/25/2020 at 6:50 PM, knoble07 said: Found this solution! Still would like all images and buttons to also align... // all text @media only screen and (max-width: 480px) { p, H1, H2, H3 { text-align: center; }} Is there a way to do this on a specific page only? For text and buttons? Link to comment
tuanphan Posted March 25, 2023 Share Posted March 25, 2023 On 3/20/2023 at 10:53 PM, johnpaulstuthridge said: Is there a way to do this on a specific page only? For text and buttons? If you share link to that page, we can help easier 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