Jump to content

Allignment background frame blog summary block

Recommended Posts

I'm working on this website:
https://grapefruit-tulip-n4ba.squarespace.com

Password:
gentes

I've already added some code to redesign some parts of the website.
(see the code below the text)

I'm struggling with one part of the homepage. I want the alignment of the blog summary block 'Vacatures' white frame the same way as the page 'vacatures'.
(See also attached image) Can somebody help me out with the right code for this?

- - - 

.blog-basic-grid--container {
background-color: #fbf7f2;
padding-top: 30px;
padding-bottom: 40px;
padding-left: 30px;
padding-right: 30px;
border-radius:5px;}

.sqs-gallery-design-carousel-slide .summary-content {
  
}

.sqs-gallery-design-carousel-slide .summary-content {
background-color: #ffffff;
padding-top: 30px;
padding-bottom: 40px;
padding-left: 30px;
padding-right: 30px;
border-radius:5px;}

.sqs-block-html .sqs-block-content ul {
  margin-top: -10px
}
.sqs-block-html .sqs-block-content ul li:before {
  top: 25px;
}
.sqs-block-html .sqs-block-content ul li p {
  margin: -1px
}

Schermafbeelding 2023-02-14 om 11.10.08.png

Link to comment
  • Replies 6
  • Views 420
  • Created
  • Last Reply

Top Posters In This Topic

Yes, indeed. On the blog page 'vacatures' this is already the case. When the excerpt text is a bit shorter on 1 blog, the height is the same for the total row or the other 2 blogs on the side. On the homepage / summary block this is not the case. With a shorter excerpt, the white frame / background has a different height. Hope you can help me out!

Link to comment
On 2/16/2023 at 5:01 PM, Bluemonque said:

Yes, indeed. On the blog page 'vacatures' this is already the case. When the excerpt text is a bit shorter on 1 blog, the height is the same for the total row or the other 2 blogs on the side. On the homepage / summary block this is not the case. With a shorter excerpt, the white frame / background has a different height. Hope you can help me out!

Add to Design > Custom CSS

@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1675711346088_3602 .summary-item-list {
    display: flex;
}
div#block-yui_3_17_2_1_1675711346088_3602 .summary-item {
    flex: 1;
    background-color: white;
    margin-left: 10px;
    margin-right: 10px;
}
}

 

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

Hi @tuanphan, this code you've send over worked perfect. 
I have the same block on the 'over Gentes' page. But because this code is only for the section on the homepage it's not working on the section on the 'over gentes' page. I tried to copy the code and to find the id of the blocks. But I think I've placed maybe the wrong one ;-))

Can you advise me? (Did I used the wrong code of the block ID?)

I've used this one:



  @media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1677523591472_633 .summary-item-list {
    display: flex;
}
div#block-yui_3_17_2_1_1677523591472_645 .summary-item {
    flex: 1;
    background-color: white;
    margin-left: 10px;
    margin-right: 10px;
      border-radius:5px;
}
}

 

Many thanks!

Link to comment
  • 5 weeks later...

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.