Jump to content

css how to center align all text mobile except 1 page

Recommended Posts

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 by WendyLW
Link to comment
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>

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.