Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
leeburnett

Different index-page thumbnail sizes on mobile

Question

I want to have different sized thumbnail images on my index pages when visitors use a mobile.

 

Ideally the thumbnail images would scale down width and height at the same time as the size scaled down, instead of only scaling horizontally.

 

My website: www.leeburnett.co.uk

Thanks

Lee


Documentary film-maker and photographer

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Add to Home > Design > Custom CSS

@media screen and (max-width:900px) {
.homepage figure img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
}
.homepage article.index-item.has-item-image {
    height: 30vh;
}
}
@media screen and (max-width:640px) {
.homepage article.index-item.has-item-image {
    height: 22vh;
}
}

 

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...