Jump to content

Reduce space between blocks on mobile

Recommended Posts

  • Replies 11
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
23 hours ago, alletters said:

How do I make two images pr row on mobile? When I add the logos 2x2 and one underneath, they still show up as one per row on mobile. 

Try adding to Design > Custom CSS

/* Mobile Partners logo */
@media screen and (max-width:767px) {
div#block-b5d3656d08485264ed98+.row>.col:nth-child(n+2) {
    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 did the trick! Thank you! 

May I ask, if I want to apply the same code to another page of the website, how would I find which block to use in the code. Eg. from the above code

#block-b5d3656d08485264ed98

I cannot seem to find this when using the "Find Squarespace ID" Chrome extension. 

Any help would be much appreciated!

Posted
21 hours ago, alletters said:

That did the trick! Thank you! 

May I ask, if I want to apply the same code to another page of the website, how would I find which block to use in the code. Eg. from the above code

#block-b5d3656d08485264ed98

I cannot seem to find this when using the "Find Squarespace ID" Chrome extension. 

Any help would be much appreciated!

Try this tool: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

Or you can share link to other pages, we will check & give the code

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
On 2/3/2022 at 6:23 PM, alletters said:

Would you be able to supply the code for 3x3 images on mobile? Any help would be much appreciated! 

Add this CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1643013318310_21843+.row>.span-2 {
    width: 33.3333% !important;
    float: left !important;
}

div#block-yui_3_17_2_1_1643013318310_21843+.row>.span-6 .span-2 {
    width: 33.3333% !important;
    float: left !important;
}

div#block-yui_3_17_2_1_1643013318310_21843+.row>.span-6 .span-2 * {
    font-size: 12px;
}
}

image.thumb.png.25e7d972586d35e744ab24d281b56a2e.png

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!)

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.