Jump to content

Home page incorrect stacking images in Mobile View

Recommended Posts

Posted

Site URL: http://www.danncooper.co.uk/

Good afternoon,

I'm having some issues with my mobile view. I basically want the home page on my mobile site to have the same stacking settings as the home page on desktop - for the menu I'm happy to keep that at the top.

I've tried disabling mobile view for the whole site, which works for the home page but the rest of the site is then harder to use.

I've attached pictures if this doesn't make any sense!! Any advice would be massively appreciated!! Thanks, Dann

Screenshot 2021-05-18 at 14.52.44.png

Screenshot 2021-05-18 at 14.53.51.png

  • Replies 8
  • Views 377
  • Created
  • Last Reply
Posted
On 5/19/2021 at 4:41 PM, dann said:

Yes, sorry layout!

Add to Design > Custom CSS

/* Mobile layout */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1621501456296_11946+.row .span-6 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1590741601929_12425+.row .span-6 {
    width: 50% !important;
    float: left !important;
}
div#page-5d468f841c7ed7000169747b>.row:nth-child(2) .span-4 {
    width: 33.3333% !important;
    float: left !important;
}
div#page-5d468f841c7ed7000169747b>.row:nth-child(3) .span-6 {
    width: 50% !important;
    float: left !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!)

Posted

That's amazing thank you so much! Is there also a way to reduce the padding between the image/video blocks or is that a feature just for version 7.1?

Posted
20 hours ago, dann said:

That's amazing thank you so much! Is there also a way to reduce the padding between the image/video blocks or is that a feature just for version 7.1?

Add to Design > Custom CSS

/* Blocks padding */
@media screen and (max-width:640px) {
div#page-5d468f841c7ed7000169747b .sqs-block {
    padding-top: 5px !important;
    padding-bottom: 5px !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!)

  • 3 weeks later...
Posted
On 5/20/2021 at 3:41 PM, tuanphan said:

Add to Design > Custom CSS


/* Mobile layout */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1621501456296_11946+.row .span-6 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1590741601929_12425+.row .span-6 {
    width: 50% !important;
    float: left !important;
}
div#page-5d468f841c7ed7000169747b>.row:nth-child(2) .span-4 {
    width: 33.3333% !important;
    float: left !important;
}
div#page-5d468f841c7ed7000169747b>.row:nth-child(3) .span-6 {
    width: 50% !important;
    float: left !important;
}
}

 

Good morning,

Thanks for all your help on this! I’ve tried adding a block below the others so I didn’t mess with the layout but it’s changed the 2nd row so now the layout is incorrect again, will I need to change the css? 
 

danncooper.co.uk

thanks, Dann 

Posted
On 6/8/2021 at 3:49 PM, dann said:

Good morning,

Thanks for all your help on this! I’ve tried adding a block below the others so I didn’t mess with the layout but it’s changed the 2nd row so now the layout is incorrect again, will I need to change the css? 
 

danncooper.co.uk

thanks, Dann 

Don't remove any code in your current code

Add this to Design > Custom CSS

/* Mobile layout */
@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1622624086606_11605+.row .span-6 {
    width: 50% !important;
    float: left !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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.