Jump to content

Hiding element on mobile

Recommended Posts

Hi, 

I'm trying to hide the top green element with this code and it's not working:

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

 

Any suggested solutions?

Link to comment
  • Replies 1
  • Views 288
  • Created
  • Last Reply
4 hours ago, Elektra said:

Hi, 

I'm trying to hide the top green element with this code and it's not working:

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

 

Any suggested solutions?

#yui id's are not constant, and cant be used

You will need to find a parent element with #block id and then target the child element with that.

#block-id_____________ .child .child

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.