Jump to content

Adjusting Mobile Padding & Customizing Poster Blocks

Recommended Posts

  • Replies 3
  • Views 375
  • Created
  • Last Reply
On 1/16/2021 at 1:20 AM, abbydowning said:

Solved #1 with this:



@media screen and (max-width: 640px) {
  #BLOCK ID {
margin-top: -35px;
  }
}

Still looking for help centering the headers on the poster blocks. 

Q2. All devices? Add to Design > Custom CSS

/* pulp and paper */
div#block-yui_3_17_2_1_1608210083549_5737 .image-title-wrapper {
    text-align: center !important;
}

Q1. Remove CSS you used & Use this CSS

/* Poster block padding */
@media screen and (max-width:640px) {
div#page-5fcba3e36e74d26c6f03173f .sqs-block {
    padding-top: 0 !important;
    padding-bottom: 0 !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

Thank you so much. This worked perfectly. 

One more question - the text on the poster blocks is centered vertically, so the spacing varies on each because of text length. Is there a way to change this spacing so it consistently starts at the same place?

I tried this but it isn't working:

.sqs-block-image .design-layout-poster .image-card-wrapper {
  display: flex !important;    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
 

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.