Jump to content

Change Blog Post Section's width

Recommended Posts

  • Replies 8
  • Views 844
  • Created
  • Last Reply

Add to Design > Custom CSS

@media screen and (min-width:768px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-column-gap: 100px;
}
}
@media screen and (max-width:767px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-template-columns: repeat(2,1fr) !important;
    display: grid;
}
}

 

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 1/20/2021 at 3:18 PM, tuanphan said:

Add to Design > Custom CSS


@media screen and (min-width:768px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-column-gap: 100px;
}
}
@media screen and (max-width:767px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-template-columns: repeat(2,1fr) !important;
    display: grid;
}
}

 

@tuanphan Thank you for replying. But the space/gap became bigger with this code. I want the section (that contains the blog posts) width, to be narrower. Can you help?

I want 2 items/row on mobile version. Can you help?

Link to comment
  • SolveigTraeet changed the title to Change Blog Post Section's width
On 1/20/2021 at 3:18 PM, tuanphan said:

Add to Design > Custom CSS


@media screen and (min-width:768px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-column-gap: 100px;
}
}
@media screen and (max-width:767px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    grid-template-columns: repeat(2,1fr) !important;
    display: grid;
}
}

 

 

On 1/21/2021 at 4:23 PM, SolveigTraeet said:

@tuanphan Thank you for replying. But the padding became bigger with this code. I want the section (that contains the blog posts) width, to be narrower. Can you help?

I want 2 items/row on mobile version. Can you help?

@tuanphan Can you help me sort this out today?

Link to comment

Add to Design > Custom CSS

@media screen and (min-width:768px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    padding-left: 20vw;
    padding-right: 20vw;
}
}
@media screen and (max-width:767px) {
.tweak-blog-basic-grid-width-inset .blog-basic-grid {
    display: grid !important;
    grid-template-columns: repeat(2,1fr) !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

Archived

This topic is now archived and is closed to further replies.

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