Jump to content

Hiding an element on mobile is hiding more than the block I've coded in CSS

Recommended Posts

So I'm making a website that has a registration price table on desktop. This element hides on mobile in favor of a more mobile-friendly list.

https://www.medicalspashow.com/register

This is mostly working except in mobile view it's also hiding the testimonial and etc information below the pricing section. This is displaying correctly in the editor, but is not correct when I visit the site on Firefox, Chrome, or mobile. I'm using this CSS

@media only screen and (max-width: 768px) { #block-yui31721156158549852313231 { display: none; } }

@media only screen and (min-width: 769px) { #block-yui31721156158549852333748 { display: none; } }

What am I doing wrong?

Link to comment
  • Replies 2
  • Views 2k
  • Created
  • Last Reply

@ericskribbles First, remove


@media only screen and (max-width: 768px) { #block-yui_3_17_2_1_1561585498523_13231 { display: none; } }

Then, use


@media only screen and (max-width:768px) {
div#block-yui_3_17_2_1_1561585498523_13231>.sqs-block-content:first-child {
   display: none;
}
}



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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.