Jump to content

How do I adjust the width of a list using CSS?

Recommended Posts

Site URL: https://steven-pillai-design.squarespace.com/work/snkrs-app

Hello,

I've been trying to adjust the width of a list section to be the same width as the other gray text blocks on my page. What would be the proper CSS coding to make this happen? 

The list is on the bottom of my page, and I've attached a screen shot.  Any help would be greatly appreciated. 

 

Thanks,

Steven

 

Screen Shot 2022-06-29 at 3.34.18 AM.png

Edited by stevenpillai
Submitted on accident without attaching photo.
Link to comment
  • stevenpillai changed the title to How do I adjust the width of a list using CSS?
  • Replies 4
  • Views 146
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi tuanphan

Kinda...my only problem now is that when the browser window isn't maximized, the width for that whole section gets smaller than the width of everything else on the page. I've attached a screen below. Any suggestions? Ideally I'd like the widths of everything on the page to stay consistent. 

 

Thanks,

Steven

Screen Shot 2022-07-01 at 9.28.07 PM.png

Link to comment

Try this new CSS

@media screen and (min-width:768px) {
.user-items-list-item-container[data-section-id="62bc49a9a9bdd610de07075b"] {
    max-width: 100% !important;
    padding: 0 !important;
}
[data-section-id="62bc49a9a9bdd610de07075b"] .content {
    width: 75%;
    margin: 0 auto;
}
section[data-section-id="62bc49a9a9bdd610de07075b"] .user-items-list {
    padding-left: 6vw;
    padding-right: 6vw;
}
}

 

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.