Jump to content

Adding Spacing to Center a Side-by-Side Blog Layout

Recommended Posts

  • 4 months later...
On 6/19/2021 at 10:47 AM, tuanphan said:

Add to Design > Custom CSS



/* blog */
.tweak-blog-side-by-side-text-alignment-left .blog-side-by-side {
    padding-left: 10vw;
    padding-right: 10vw;
}
.blog-item-text {
    width: 100% !important;
}

 

Thank you @tuanphan

I have one more question that I hope you can help me with. Do you know how I can display side by side blog of that same page on mobile? Right now it shows every title under the thumbnail rather than next to the thumbnail when you visit the page on mobile. So, to be clear... I want the titles on the blog page to show next to the thumbnails when viewing the page on mobile.

Also is there a CSS code to adjust the text size of the titles? Can't find it in "Format".

Thanks in advance!

Edited by JustLucas
Link to comment
10 hours ago, JustLucas said:

Thank you @tuanphan

I have one more question that I hope you can help me with. Do you know how I can display side by side blog of that same page on mobile? Right now it shows every title under the thumbnail rather than next to the thumbnail when you visit the page on mobile. So, to be clear... I want the titles on the blog page to show next to the thumbnails when viewing the page on mobile.

Also is there a CSS code to adjust the text size of the titles? Can't find it in "Format".

Thanks in advance!

Add to Design > Custom CSS

/* Mobile blog side by side */
@media screen and (max-width:767px) {
.blog-side-by-side .blog-item.is-loaded {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.blog-side-by-side.collection-content-wrapper {
    padding-left: 5vw;
    padding-right: 5vw;
}
section.blog-item-summary {
    width: 50%;
}
section.blog-image-wrapper {
    width: 48% !Important;
    margin-right: 2% !important;
}
section.blog-item-summary * {
    font-size: 16px;
    line-height: 22px !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

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.