Jump to content

Centering team page content within each list

Recommended Posts

Hi there, i'm having a similar issue and tried the code above, but it wouldnt work as expected… the 7th team member should be aligned to the middle… if i adjust the 50% it will move but not aligned in the middle, as soon as the windowsize changes… ideas anyboy? THANK YOU!

Bildschirmfoto 2023-05-10 um 14.19.08.png

Link to comment
On 5/10/2023 at 7:24 PM, struktiv said:

Hi there, i'm having a similar issue and tried the code above, but it wouldnt work as expected… the 7th team member should be aligned to the middle… if i adjust the 50% it will move but not aligned in the middle, as soon as the windowsize changes… ideas anyboy? THANK YOU!

Bildschirmfoto 2023-05-10 um 14.19.08.png

Can you share link to this page?

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/15/2023 at 6:18 PM, struktiv said:

hi tuanphan,

here is the link: https://edworx.squarespace.com/team

Add to Design > Custom CSS

@media screen and (min-width:768px) {
.user-items-list-item-container[data-section-id="644657f84a277b4b24cb820c"] li:last-child {
    position: relative;
    left: calc(~"100% + 60px");
}
}

 

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
  • 2 months later...
13 hours ago, SmallSitesSarah said:

@tuanphan I am having the same issue. I've tried adjusting the section ID and nth child, as suggested in your other posts, but I haven't been able to get the desired result. The bottom row of each "team" section should be centered. Site: larso-backend.squarespace.com, password: LARSO

Screenshot 2023-08-02 170506.jpg

I don't see team section. Can you share link to an exact page?

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
21 hours ago, SmallSitesSarah said:

Use this code to Custom CSS box

/* Center list item */
@media screen and (min-width:768px) {
/* LARSO Staff */
.user-items-list-item-container[data-section-id="64cab926f07fd41f66a3731b"] li:nth-child(n+4) {
    left: calc(~"50% + 30px");
    position: relative;
}
/* Friends of LARSO */
.user-items-list-item-container[data-section-id="64cac35a9ed23354cccd43de"] li:nth-child(n+7) {
    position: relative;
    left: calc(~"100% + 60px");
}}

 

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 8/4/2023 at 7:11 AM, tuanphan said:

Use this code to Custom CSS box

/* Center list item */
@media screen and (min-width:768px) {
/* LARSO Staff */
.user-items-list-item-container[data-section-id="64cab926f07fd41f66a3731b"] li:nth-child(n+4) {
    left: calc(~"50% + 30px");
    position: relative;
}
/* Friends of LARSO */
.user-items-list-item-container[data-section-id="64cac35a9ed23354cccd43de"] li:nth-child(n+7) {
    position: relative;
    left: calc(~"100% + 60px");
}}

 

Fabulous. Thank you! Can you explain the calc(~# + #px) code? I want to learn how it works in case the number of bios changes. I understand the rest. 

Link to comment
17 hours ago, SmallSitesSarah said:

Fabulous. Thank you! Can you explain the calc(~# + #px) code? I want to learn how it works in case the number of bios changes. I understand the rest. 

left is move item to right a bit

position: relative, you need to declare this to make left, right attribute work

by default you can use left: calc(50% + 30px) means move to right 50% + 30px

but when you add calc code to CSS, it won't able to read this calc symbol, and you need to add ~ and " symbol

 

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 8/7/2023 at 5:49 AM, tuanphan said:

left is move item to right a bit

position: relative, you need to declare this to make left, right attribute work

by default you can use left: calc(50% + 30px) means move to right 50% + 30px

but when you add calc code to CSS, it won't able to read this calc symbol, and you need to add ~ and " symbol

 

Thank you for explaining! 

Link to comment
On 8/9/2023 at 9:48 AM, SmallSitesSarah said:

Thank you for explaining! 

I forgot, about why I use 50%. It's just that I tried some values like 25%, 50%, 100%...and found 50% to be the best.
For 30px, the space between items is 60px, so I tried 60px or 30px.

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

@tuanphan At a loss.... I have used the solution in this thread for 3-4 websites, but I cannot coax it to work in the footer. On desktop, the logos in the second line  of the footer should be centered. Can you help?  (www.muldowney.com)

Screenshot 2024-02-29 221546.png

Edited by SmallSitesSarah
added screenshot
Link to comment
On 3/1/2024 at 10:14 AM, SmallSitesSarah said:

@tuanphan At a loss.... I have used the solution in this thread for 3-4 websites, but I cannot coax it to work in the footer. On desktop, the logos in the second line  of the footer should be centered. Can you help?  (www.muldowney.com)

Screenshot 2024-02-29 221546.png

You can use this CSS code

#block-yui_3_17_2_1_1708573270824_58636 .sqs-gallery-block-grid .sqs-gallery-design-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

image.thumb.png.63d852802ef6222953aee197290abaeb.png

image.png.55f1cd409e0e4d205d3df05c7fcf5ca9.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!)

Link to comment
  • 1 month later...
On 4/16/2024 at 7:37 PM, SarahBethGraphics said:

I'd love your help as well. I've tried many of the codes you've created for others, tweaking with my section IDs with no success.

Here is the page - https://haitiprojects1.squarespace.com/our-team , p/w "design"

I'm looking for all rows of staff to be centered on this page. Thank you.

This is code for Artisanat and Women’s Health Clinic. If it works, I will check other lists

@media screen and (min-width:992px) {
/* Artisanat */
section[data-section-id="661e6a24dd75df35b293a9e3"] .user-items-list-item-container>li:nth-child(n+1) {
    position: relative;
    left: calc(~"50% + 10px");
}
/* Womens Health Clinic */
.user-items-list-item-container[data-section-id="661e6ac1e057f947a10a6292"]>li:nth-child(n+1) {
    position: relative;
    left: calc(~"50% + 10px");
}
}

 

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 4/23/2024 at 9:26 AM, SarahBethGraphics said:

I've unsuccessfully tried various versions of this code. I have multiple simple lists in sections on the teams page and would love all sections centered. Can you help?

https://haitiprojects1.squarespace.com/our-team

pw = "design"

Thank you!

 

Strange, I remember I send code for this question somewhere.

This code for Women's Health Clinic, if it works, I will send code for other

Use code to Website > Website Tools > Custom CSS

@media screen and (min-width:992px) {
.user-items-list-item-container[data-section-id="661e6ac1e057f947a10a6292"] li {
    position: relative;
    left: calc(~"50% + 10px");
}
}

 

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

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.