Jump to content

Centering last row in Portfolio pre-made block

Recommended Posts

Posted (edited)

Site URL: https://apricot-goldfish-m57n.squarespace.com

Does anyone know if it is possible to do this. 

Have tried this but havent been able to get it to work within SS

https://css-irl.info/controlling-leftover-grid-items/

If anyone has any idea I would be grateful.

.portfolio-grid-basic seems ot be the class that works but it all ends up squiffy.

Thanks

Screenshot 2021-08-13 at 00.08.54.png

Edited by AlexTokolosh
mo info
  • 2 months later...
Posted
On 11/9/2021 at 11:32 AM, RT53 said:

Hi! Did anyone get this answered? I have the same question, but for a "simple list" block. Thank you!!

I have the same question!

  • 2 years later...
Posted
On 1/11/2024 at 9:36 PM, odascheel said:

Hi! I have the same quesyion regarding https://www.altamira.no/talent

Is it possible to either center the last row OR place all 5 into one row?

Add this code to Website Tools (under Not Linked) > Custom CSS

/* center portfolio */
@media screen and (min-width:768px) {
div#gridThumbs .grid-item:nth-child(n+4) {
    position: relative;
    left: calc(~"50% + 40px");
}
}

image.thumb.png.150b83f885639689daca166c54689749.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.