WendyLW Posted August 30, 2022 Share Posted August 30, 2022 Site URL: https://www.cedarpathcounseling.com I would like to center align all text on mobile-except one page or except two sections to stay left align. view page here: cedarpathcounseling.com/npp password: arah What css to add/change to this snippet? /* center text mobile */ @media screen and (max-width: 640px) { h1, h2, h3, p { text-align: center !important; } } Link to comment
tuanphan Posted August 31, 2022 Share Posted August 31, 2022 Try adding to NPP Page Header (Do Not add to Custom CSS) <style> @media screen and (min-width:992px) { body#collection-62f8fb2c1617b3713a419d39 section * { text-align: center !important; } } </style> 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
WendyLW Posted August 31, 2022 Author Share Posted August 31, 2022 Hi Tuanphan ! thanks for taking a look at this. I am wondering wouldn't it be "left" not "center" for this to add to the page header for this page's advanced settings. I tried it both ways.. It is still center aligning on mobile for this page: https://www.cedarpathcounseling.com/npp Link to comment
WendyLW Posted August 31, 2022 Author Share Posted August 31, 2022 (edited) Hi Tuanphan, update here 😃 I think I've got it looking more readable on mobile for a terms page-left aligned that is...First, I double checked the page's content for old formatting. Then I added this below to page header injection. It works great.. except it sends footer text left align when you are on that specific page. any suggestions to improve it are welcome! thanks! added to page header injection: <style> @media screen and (max-width: 640px) { h1, h2, h3, p { text-align: left !important; } } </style> Edited September 1, 2022 by WendyLW Link to comment
tuanphan Posted September 3, 2022 Share Posted September 3, 2022 On 9/1/2022 at 12:06 AM, WendyLW said: Hi Tuanphan, update here 😃 I think I've got it looking more readable on mobile for a terms page-left aligned that is...First, I double checked the page's content for old formatting. Then I added this below to page header injection. It works great.. except it sends footer text left align when you are on that specific page. any suggestions to improve it are welcome! thanks! added to page header injection: <style> @media screen and (max-width: 640px) { h1, h2, h3, p { text-align: left !important; } } </style> You can add article before to make it works for page content only <style> @media screen and (max-width: 640px) { article h1, article h2, article h3, article p { text-align: left !important; } } </style> WendyLW 1 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
WendyLW Posted September 3, 2022 Author Share Posted September 3, 2022 awesome! it works great. 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