Jump to content

@media screen not working with custom css

Recommended Posts

I'm trying to add some custom css to the mobile layout of the website, but for example the following code is giving syntax error:

@media screen and (min-width: 0) and (max-width: 1207px) and (orientation: portrait)
.site-wrapper, .sqs-catalog {
  1. font-size: 12px;
Any ideas to solve this?
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Your code is invalid, use this

@media screen and (max-width: 1207px) and (orientation: portrait) {
.site-wrapper, .sqs-catalog {
font-size: 12px;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.