Jump to content

How can I hide an entire section from mobile and tablet view?

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://bluebird-porcupine-yzdg.squarespace.com/

I am currently using some code to hide an entire section from mobile view.

Site: https://bluebird-porcupine-yzdg.squarespace.com/

Pword: bluebird

The code I am using is:

@media screen and (max-width:767px) {
[data-section-id="5ef4c07482b8e941cd5ebc10"] {
    display: none;
}
}

How can I adjust this code so that the section is also hidden from tablet view?

Currently when I look at the page using my Surface Pro in tablet view, it still appears.

Please help!

Many thanks,

Best,

Faizal

Link to comment
  • Replies 5
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 11 months later...

@rwp I just saw you answer on this. I am having a BEAR of a time getting my site to look good on the surface pro - even if I use 1024 or 1440 or 991 as breakpoints. 1/2 our Exec group is on them, so it needs to look good. Is there a way to code specifically for surface pro?

 

Thanks!

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.