Jump to content

Centering text in simple list for Mobile

Recommended Posts

Posted

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

Hi! I have been having the hardest time centering the title and description of the simple list block of my Meet the Team page for a client I've been designing a site for. Here's the code I have, I know it's not perfect but it's working for the most part:

 

//mobile version - meet the team//
@media only screen and (max-width: 767px) { 
section[data-section-id="6215672720d4727b3982a809"] .user-items-list-item-container .list-item-content__title {
  font-weight: normal!important;
  font-size: 16pt !important;
  font-weight:700!important;
  font-size: 1rem;
  margin-right: 195px;
  padding-bottom: 0px;
  padding-top: 30px;
}
  .user-items-list-item-container .list-item-content__description {
  font-size:10pt!important;
  text-align: center!important;
      margin-right: 300px;
}
.user-items-list-simple .list-item-content {
  width: 300%;
  height: 2vh;
}
  .user-items-list-simple img{
    max-width: 900px!important;
    margin: 0 auto!important;
  }
}

Help me center the descriptions, especially???

 

(Password is Employee180!)

 

Screen Shot 2022-03-12 at 10.33.07 PM.png

Posted
6 hours ago, dv_louise_designs said:

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

Hi! I have been having the hardest time centering the title and description of the simple list block of my Meet the Team page for a client I've been designing a site for. Here's the code I have, I know it's not perfect but it's working for the most part:

 

//mobile version - meet the team//
@media only screen and (max-width: 767px) { 
section[data-section-id="6215672720d4727b3982a809"] .user-items-list-item-container .list-item-content__title {
  font-weight: normal!important;
  font-size: 16pt !important;
  font-weight:700!important;
  font-size: 1rem;
  margin-right: 195px;
  padding-bottom: 0px;
  padding-top: 30px;
}
  .user-items-list-item-container .list-item-content__description {
  font-size:10pt!important;
  text-align: center!important;
      margin-right: 300px;
}
.user-items-list-simple .list-item-content {
  width: 300%;
  height: 2vh;
}
  .user-items-list-simple img{
    max-width: 900px!important;
    margin: 0 auto!important;
  }
}

Help me center the descriptions, especially???

 

(Password is Employee180!)

 

Screen Shot 2022-03-12 at 10.33.07 PM.png

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px){
  section[data-section-id="6215672720d4727b3982a809"] .user-items-list-simple .list-item-content  {
    height: auto ;
    width: 100%;
  }
  section[data-section-id="6215672720d4727b3982a809"] {
    padding: 0;
  }
  section[data-section-id="6215672720d4727b3982a809"] .list-item-content__description p {
    text-align: center !important;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
15 hours ago, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px){
  section[data-section-id="6215672720d4727b3982a809"] .user-items-list-simple .list-item-content  {
    height: auto ;
    width: 100%;
  }
  section[data-section-id="6215672720d4727b3982a809"] {
    padding: 0;
  }
  section[data-section-id="6215672720d4727b3982a809"] .list-item-content__description p {
    text-align: center !important;
  }
}

Let me know how it works on your site

@bangank36It worked really well! Thank you! Can you also help me with changing the font-size of the section title, and reducing space between list items?

Posted
5 hours ago, dv_louise_designs said:

@bangank36It worked really well! Thank you! Can you also help me with changing the font-size of the section title, and reducing space between list items?

Hi,

Use this code in Design -> Custom CSS

section[data-section-id="6215672720d4727b3982a809"] .user-items-list-item-container .list-item-content__title {
    font-size: 22px !important;
}

section[data-section-id="6215672720d4727b3982a809"] .user-items-list-item-container .list-item-content__description {
    font-size: 14px !important;
}

.user-items-list-item-container[data-section-id="6215672720d4727b3982a809"] {grid-gap: 50px 20px !important;}

Please use the like button if it helps you!

Best,
Leopold

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

Posted

Hi @IXStudio! That was very helpful. Was wondering if you could help with another part of that site - everything was good until recently and the list got all jumbled in mobile again. Any help would be great! 

I also can't seem to edit either "The Problem" or "The Solution" text to change size. Thanks!

 

 

Screen Shot 2022-03-18 at 1.17.39 AM.png

Screen Shot 2022-03-18 at 1.17.34 AM.png

Posted
On 3/18/2022 at 12:18 PM, dv_louise_designs said:

Hi @IXStudio! That was very helpful. Was wondering if you could help with another part of that site - everything was good until recently and the list got all jumbled in mobile again. Any help would be great! 

I also can't seem to edit either "The Problem" or "The Solution" text to change size. Thanks!

 

 

Screen Shot 2022-03-18 at 1.17.39 AM.png

Screen Shot 2022-03-18 at 1.17.34 AM.png

Which page are you referring to?

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 3/18/2022 at 4:18 AM, dv_louise_designs said:

Hi @IXStudio! That was very helpful. Was wondering if you could help with another part of that site - everything was good until recently and the list got all jumbled in mobile again. Any help would be great! 

I also can't seem to edit either "The Problem" or "The Solution" text to change size. Thanks!

 

 

Screen Shot 2022-03-18 at 1.17.39 AM.png

Screen Shot 2022-03-18 at 1.17.34 AM.png

You are welcome!
Please let me know which page are there?

Please use the like button if it helps you!

Best,
Leopold

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

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.