Jump to content

Blurry compressed image when on mobile preview

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://bagpipe-swordfish-5feg.squarespace.com/

Hello, 

On my blog dekstop page, the background image that I have behind my blog links looks as it should. But when I switch to mobile view, the image adjusts and becomes blurry. Is there something with the css used for the background causing the blurry compression? 

https://bagpipe-swordfish-5feg.squarespace.com/

password: home

Thanks!

Edited by katierelease
wording
Link to comment
  • katierelease changed the title to Blurry compressed image when on mobile preview
  • Replies 6
  • Views 702
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 12/24/2021 at 12:16 AM, katierelease said:

Site URL: https://bagpipe-swordfish-5feg.squarespace.com/

Hello, 

On my blog dekstop page, the background image that I have behind my blog links looks as it should. But when I switch to mobile view, the image adjusts and becomes blurry. Is there something with the css used for the background causing the blurry compression? 

https://bagpipe-swordfish-5feg.squarespace.com/

password: home

Thanks!

Don't remove any code in your current code.

Add this to Design > Custom CSS

/* Mobile blog image */
@media screen and (max-width:767px) {
.blog-masonry.collection-content-wrapper {
    background-size: cover;
    background-position: 50% !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
On 12/25/2021 at 4:17 AM, tuanphan said:

Don't remove any code in your current code.

Add this to Design > Custom CSS

/* Mobile blog image */
@media screen and (max-width:767px) {
.blog-masonry.collection-content-wrapper {
    background-size: cover;
    background-position: 50% !important;
}
}

 

Thank you once again Tuan! If I wanted to adjust the height position of the image, what additional code would that be?

Edited by katierelease
Link to comment
On 12/27/2021 at 2:55 AM, katierelease said:

Thank you once again Tuan! If I wanted to adjust the height position of the image, what additional code would that be?

adjust these values

/* Mobile blog image */
@media screen and (max-width:767px) {
.blog-masonry.collection-content-wrapper {
    background-size: cover;
    background-position: 50% 40% !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
3 hours ago, tuanphan said:

adjust these values

/* Mobile blog image */
@media screen and (max-width:767px) {
.blog-masonry.collection-content-wrapper {
    background-size: cover;
    background-position: 50% 40% !important;
}
}

 

Thanks Tuan, I tried the code but the image isn't adjusting height-wise. The second value won't move the image up and down.

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.