Jump to content

Different Desktop and Mobile Images without extra padding

Recommended Posts

Site URL: https://www.gruntstylefoundation.org

Hello - I need two different images on desktop and mobile and have achieved this with the code below but now there is extra space where the other image should go but is hidden.  Is there any way to eliminate that?

 

@media screen and (max-width: 640px) {
  #block-yui_3_17_2_1_1660069934451_52093 {
  display: none;
  }
}

@media screen and (min-width: 641px) {
#block-yui_3_17_2_1_1661390148186_107977 {
display: none;
  }
}
 

Screen Shot 2022-08-24 at 9.42.24 PM.png

Screen Shot 2022-08-24 at 9.42.58 PM.png

Link to comment
  • Replies 1
  • Views 164
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.