Jump to content

Vertical blog photos bigger on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Hi everyone, 

My photography blog shows pictures nicely horizontally and vertically on a computer, but the vertical pictures are too small in the mobile version of the site. Is there any code of another way to make them show bigger only on mobile devices? 
(Also: only for blogposts, all other images on the site are fine)

Example of a blogpost https://www.lensmens.be/blog/huwelijksfotograaf-isabel-thomas-antwerpen

Thanks in advance!


PS: tagging you, @tuanphan because you've helped me a lot in the past! Thanks again!

Edited by lensmens
Link to comment
  • Solution

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
div.blog-item-content-wrapper {
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
    top: 0 !important;
a.image-slide-anchor.content-fit {
    height: auto !important;
    padding: unset !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.