Jump to content

How to change the colour of a block of text in mobile view only?

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

15 minutes ago, PoppyShotts said:

Site URL: https://parakeet-carrot-xzxb.squarespace.com/

Password: steph

 

I have a block of text (#block-yui_3_17_2_1_1665133501472_1648588) that is legible on desktop view (font: #000000), but it isn't legible on mobile view (too dark). 

 

Can someone please help me to write some CSS to make this block of text white in mobile view only? 

 

Many thanks! 

image.thumb.png.a435e237bda61be438d2d02dfbff8f6c.pngimage.thumb.png.c4ff727ddeef0d7291ffc824fd3530ac.png

 

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1665133501472_1648588 p span {
    color: #fff !important;
  }
}

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.png.7bbc2706602dbd3b6d058251000109e7.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.