Jump to content

Left aligned for MOBILE only

Recommended Posts

Hi all, I'm trying to make certain copy left-aligned at mobile view only. 

For H1 and the body copy, I was able to centralise the text at mobile view only with this code:
@media only screen and (max-width: 767px) {
#block-f22443780cf18b9062ca, #block-4d3b778cea06e11e17de { 
    text-align: center; 
  }}


However, I was unable to left-aligned the following text with the following code:
@media only screen and (max-width: 767px) {
#block-yui_3_17_2_1_1691026635683_53233, #block-26a7ccb790a5dd3219be { 
    text-align: left; 
  }}

Help.
image.png.1f25873ec113e8028649ffcf6da84f41.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I'm not sure of the text class without having access to the site, however try this:

 

@media only screen and (max-width: 767px) {
#block-yui_3_17_2_1_1691026635683_53233, #block-26a7ccb790a5dd3219be { 
   h1,h2,h3,h4, p
{ text-align: left !important; }
}
}

 

Link to comment

Apologies, I'm trying to make this section left aligned on mobile too but it is not working:
@media only screen and (max-width: 767px) {
#block-be8089d82254a8f6ec6e, #block-5f374c4f3fa916b478bd { 
   h1,h2,h3,h4,p,p1,p2
{ text-align: left !important; }
}
}

image.thumb.png.a62bbf2e32db5fed012a5b23d3de3645.png

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.