Jump to content

Image Block resize on mobile

Recommended Posts

Site URL: https://www.dthmedia.com.au/

I have a sizing issue on mobile that I would like to try and fix.

The image blocks on desktop look great but when these resize for mobile, they are far too large. Is there a way at keeping these at a particular pixel width/height for both desktop and mobile? See attached screenshots to see whats happening.

The icons in question appear on the following pages:

https://www.dthmedia.com.au/printing and https://www.dthmedia.com.au/design

Cheers,
James

Screen Shot 2020-07-21 at 5.49.00 pm.png

Screen Shot 2020-07-21 at 5.48.39 pm.png

Link to comment

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
/* design page */
div#block-yui_3_17_2_1_1594864815195_13755+.row>.col .image-block {
    width: 50% !important;
    margin: 0 auto;
}
/* printing page */
div#block-yui_3_17_2_1_1594860272131_4969+.row .image-block {
    width: 50%;
    margin: 0 auto;
}
}

 

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
  • 6 months later...
On 2/2/2021 at 6:59 AM, Ivan_M said:

Hi!

 

I'm having the same problem here:

Site URL: https://www.continuastudio.com/

 

IMG_4496.jpg

Add to Design > Custom CSS

/* resize footer logo */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1594082580712_20722 {
    width: 30%;
    margin: 0 auto;
}
}

 

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
  • 4 months later...
On 2/4/2021 at 4:08 AM, tuanphan said:

Add to Design > Custom CSS


/* resize footer logo */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1594082580712_20722 {
    width: 30%;
    margin: 0 auto;
}
}

 

Hi! I am having a similar issue with my layout as well.  The gallery slider won't resize for mobile as well as any of the header images I have put in. I've tried so many different variations of codes and am losing my mind. 

 

Screen Shot 2021-06-28 at 7.34.59 PM.png

Screen Shot 2021-06-28 at 7.35.06 PM.png

Link to comment
On 6/29/2021 at 7:35 AM, saraschaepe said:

Hi! I am having a similar issue with my layout as well.  The gallery slider won't resize for mobile as well as any of the header images I have put in. I've tried so many different variations of codes and am losing my mind. 

 

Screen Shot 2021-06-28 at 7.34.59 PM.png

Screen Shot 2021-06-28 at 7.35.06 PM.png

Hi. What is site url? We can check easier

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
  • 4 weeks later...
On 2/4/2021 at 5:08 AM, tuanphan said:
/* resize footer logo */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1594082580712_20722 {
    width: 30%;
    margin: 0 auto;
}
}

Using this code to increase an image block for mobile but I'm not able to get it centered. Trying to figure out what I need to adjust to the code for positioning. 

http://www.southernsunevents.com

PW: sse2020

Screen Shot 2021-07-27 at 7.06.19 PM.png

Link to comment
On 7/28/2021 at 6:07 AM, SouthernSunEvents said:

Using this code to increase an image block for mobile but I'm not able to get it centered. Trying to figure out what I need to adjust to the code for positioning. 

http://www.southernsunevents.com

PW: sse2020

Screen Shot 2021-07-27 at 7.06.19 PM.png

If you use width: 110%, use this new code

@media screen and (max-width:640px) {
    div#block-yui_3_17_2_1_1626402590302_10651 {
        width: 110%;
        margin: 0 auto;
        left: -10%;
    }
}

 

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
  • 1 month later...

Hi! I'm also having this problem with small logo image blocks and logo walls that I use on the bottom of my home page, one of my bio pages, and my contact page. The logos look small and correct on desktop but fill the entire screen on mobile. 

URLs here: https://sawfish-parrot-dswf.squarespace.com/

https://sawfish-parrot-dswf.squarespace.com/contact

https://sawfish-parrot-dswf.squarespace.com/attorneys/kevinlundholm

2021-09-13 10_15_00-Kyler Lundholm LPA.png

2021-09-13 10_15_22-Kyler Lundholm LPA.png

Edited by TLKPLD
Link to comment
On 9/13/2021 at 9:16 PM, TLKPLD said:

Hi! I'm also having this problem with small logo image blocks and logo walls that I use on the bottom of my home page, one of my bio pages, and my contact page. The logos look small and correct on desktop but fill the entire screen on mobile. 

URLs here: https://sawfish-parrot-dswf.squarespace.com/

https://sawfish-parrot-dswf.squarespace.com/contact

https://sawfish-parrot-dswf.squarespace.com/attorneys/kevinlundholm

2021-09-13 10_15_00-Kyler Lundholm LPA.png

2021-09-13 10_15_22-Kyler Lundholm LPA.png

Answered your message. You can check it again.

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
  • 8 months later...
21 hours ago, IwanJ said:

Hi @tuanphan, me again! 

Any ideas how I can reduce the space between heading and top section bottom border on MOBILE view in this particular section on homepage? Please?

https://deep-learning-cafe.squarespace.com/ password: password123

Capture9.PNG

adjust 135

@media screen and (max-width: 767px) {
    [data-section-id="628f16bb0a4af13482286d70"] video {
        width:100% !important;
        height: auto !important
    }

    [data-section-id="628f16bb0a4af13482286d70"] {
        min-height: unset !important;
        height: 135vh;
        margin-top: 0vh
    }
}

 

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 5/27/2022 at 12:40 PM, tuanphan said:
@media screen and (max-width: 767px) {
    [data-section-id="628f16bb0a4af13482286d70"] video {
        width:100% !important;
        height: auto !important
    }

    [data-section-id="628f16bb0a4af13482286d70"] {
        min-height: unset !important;
        height: 135vh;
        margin-top: 0vh
    }
}

Hi Tuan, if I do this, then the whole top section disappears...

Link to comment
On 5/29/2022 at 11:58 PM, IwanJ said:

Hi Tuan, if I do this, then the whole top section disappears...

To remove space, edit this code

@media screen and (max-width: 767px) {
    [data-section-id="61768984a9b12a61e5da1d86"] {
        min-height:unset !important;
        height: 85vh;
        margin-top: -45vh
    }
}

 

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
  • 4 months later...
On 9/13/2021 at 11:16 AM, TLKPLD said:

Hi! I'm also having this problem with small logo image blocks and logo walls that I use on the bottom of my home page, one of my bio pages, and my contact page. The logos look small and correct on desktop but fill the entire screen on mobile. 

URLs here: https://sawfish-parrot-dswf.squarespace.com/

https://sawfish-parrot-dswf.squarespace.com/contact

https://sawfish-parrot-dswf.squarespace.com/attorneys/kevinlundholm

2021-09-13 10_15_00-Kyler Lundholm LPA.png

2021-09-13 10_15_22-Kyler Lundholm LPA.png

Would love to know how this one was solved, same issue here.  Best!

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.