Jump to content

Adjust Images into Columns Mobile View

Recommended Posts

Site URL: https://www.aspireleadwell.com/services

I am trying to adjust the icon images on this page into two columns when viewed on mobile. I used this code but the last two icons are hanging.

Any idea how to adjust this code?

 

Current Code:
@media screen and (max-width:767px) {
  div#page-section-60615955e6fb7c423bfac5d6 .span-12 {
    .span-4 {
      width: 50% !important;
      float: left !important;
    }
  }58533662_ScreenShot2022-05-05at11_04_12PM.thumb.png.1c56a5414e877d2ba1902c7bd7bea64a.png1514365475_ScreenShot2022-05-05at11_03_52PM.thumb.png.891cabf0f2f48c8e4b3d2628fb481209.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

1 hour ago, mmejia08 said:

Site URL: https://www.aspireleadwell.com/services

I am trying to adjust the icon images on this page into two columns when viewed on mobile. I used this code but the last two icons are hanging.

Any idea how to adjust this code?

 

Current Code:
@media screen and (max-width:767px) {
  div#page-section-60615955e6fb7c423bfac5d6 .span-12 {
    .span-4 {
      width: 50% !important;
      float: left !important;
    }
  }58533662_ScreenShot2022-05-05at11_04_12PM.thumb.png.1c56a5414e877d2ba1902c7bd7bea64a.png1514365475_ScreenShot2022-05-05at11_03_52PM.thumb.png.891cabf0f2f48c8e4b3d2628fb481209.png

You can try the following code

@media screen and (max-width: 767px) {
  div#page-section-60615955e6fb7c423bfac5d6 .span-12 .span-4 {
    width: 100% !important;
    display: flex;
  }
  .image-block {
    width: 50%;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.82e3951080a3183f6317e0f8f9206f51.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.