Jump to content

CSS selectors to target blog page padding

Recommended Posts

  • Replies 8
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 3 weeks later...
On 5/7/2024 at 6:54 AM, estormstudio said:

Hi @tuanphan - here is the link and password:
 

Blog: https://veronicatuckerthelabel.com/blog
Password: hello

Looking to achieve similar padding around and between blog posts like this Squarespace site example: https://jhannahjournal.com/

 

Thank you!

You mean padding on left/right of screen? You can try this to Website > Website Tools > Custom CSS

@media screen and (min-width:992px) {
.blog-alternating-side-by-side {
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    max-width: 900px !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!)

Link to comment

Quite complex to achieve this

You try this to Custom CSS

@media screen and (min-width:768px) {
div.blog-alternating-side-by-side-wrapper article {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

div.blog-alternating-side-by-side-wrapper article>section {
    width: 100% !important;
    margin-bottom: 10px !important;
}

.blog-alternating-side-by-side-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 50px;
}
}

 

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.