Jump to content

Flatiron Template - is it possible to reduce size of index page thumbnail images?

Recommended Posts

Is it possible to reduce size of index page thumbnail images?

I've managed to alter the grid (using code I found elsewhere in the forum - see below) and it made the images smaller (for mobile only) , which looks nice. Ideally, I'd have 3x columns for Desktop/Tablet, and 2x for mobile - OR - reduce the thumbnail image sizes with some code. 

Anyone know how to do so?

 

@media only screen and (max-width: 640px) {
    #grid {
        columns: 2;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
   .item {
        height: auto!important;
    }
    .item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block !important;
        padding: 0px!important;
        box-sizing: border-box;
        top: unset !important;
    }

    .item img {
        height: 100%!important;
          width: 100%!important;
    }
}

 

Link to comment
  • Replies 4
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

To change on tablet, desktop, use this code under

@media only screen and (min-width:641px) {
    #grid {
        columns: 3;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
   .item {
        height: auto!important;
    }
    .item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block !important;
        padding: 0px!important;
        box-sizing: border-box;
        top: unset !important;
    }

    .item img {
        height: 100%!important;
          width: 100%!important;
    }
}

 

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

If you want to make code run on mobile + tablet only, use this new code

@media only screen and (max-width:1024px) {
    #grid {
        columns: 3;
        column-gap: 0;
        height: auto!important;
        display: block!important;
        padding: 0px;
    }
   .item {
        height: auto!important;
    }
    .item {
        position: relative!important;
        transform: none!important;
        width: 100%!important;
        display: block !important;
        padding: 0px!important;
        box-sizing: border-box;
        top: unset !important;
    }

    .item img {
        height: 100%!important;
          width: 100%!important;
    }
}

 

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

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.