Jump to content

Remove White space on Mobile & Tablet for Image Card Blocks

Recommended Posts

Hello 🙂

I am having an issue with white space showing up on Mobile and Tablet views only for Image card blocks. Not sure what CSS to use. 

For  Mobile view, there's a white space above and below the image card block.

For Tablet view, there's white space only under the image side on an image card block that has a lot of text

Mobile View

image.thumb.png.7b33cf111785d495c22b41dac8eb8f1c.png

Tablet view (image card with more text)

image.thumb.png.277c7a994b82186265e58110dab97cf9.png

 

Current CSS that is being used for the Image Card Blocks are:

/* Image card layout- full width */
#yt-section-3 .Index-page-content, #testing-image-card-css .Index-page-content{
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  max-width: 100%;
}

/* Image Card layout- title formatting*/
.image-block-card-dynamic-font-sizing .sqs-block-image .design-layout-card .image-title p {
   font-family: 'Chapaza';
   line-height: 1em;
}

/* Image Card layout- subtitle formatting*/
.image-block-card-dynamic-font-sizing .sqs-block-image .design-layout-card .image-subtitle p {
    font-family: 'Montserrat';
    line-height: 1.5em;
}

Thank you in advance for your help! 

Link to comment
  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)

The tester page is:  https://www.naturalinjector.com/test-youtube 

The card blocks URL Slugs are: house-calls-card-tester and youtube-card-tester 

I have gone into Website > Design > Site Styles > Image Block: Card  to set card separation to 0% and font colors. Font families ('Chapaza' and  'Montserrat') were added via code by the original designer.

 

/house-calls-card-tester

  • On the desktop view, there is white space only below the image. Is there a specific size the image needs to be, or is there CSS to have the image fill in the space regardless of how much text is added?
  • On Mobile and Tablet view, there is white space above and below the Image Block Card section

/youtube-card-tester 

  • On Mobile and Tablet view, there is white space above and below the Image Block Card section

 

Edited by GMH
needed to update message
Link to comment
On 1/10/2024 at 4:41 AM, GMH said:

The tester page is:  https://www.naturalinjector.com/test-youtube 

The card blocks URL Slugs are: house-calls-card-tester and youtube-card-tester 

I have gone into Website > Design > Site Styles > Image Block: Card  to set card separation to 0% and font colors. Font families ('Chapaza' and  'Montserrat') were added via code by the original designer.

 

/house-calls-card-tester

  • On the desktop view, there is white space only below the image. Is there a specific size the image needs to be, or is there CSS to have the image fill in the space regardless of how much text is added?
  • On Mobile and Tablet view, there is white space above and below the Image Block Card section

/youtube-card-tester 

  • On Mobile and Tablet view, there is white space above and below the Image Block Card section

 

#1. first link, can you check image?

image.thumb.png.dfa5d457e4bda4f9c8efe89754758d17.png

#2. https://www.naturalinjector.com/youtube-card-tester

Page doesn't work

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.