Jump to content

Mobile Banner Height

Recommended Posts

  • Replies 9
  • Views 804
  • Created
  • Last Reply

Add to Home > design > custom CSS

@media screen and (max-width:640px) {
.banner-thumbnail-wrapper.has-description, .desc-wrapper {
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
}

 

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

Thanks a lot, it works exactly as expected!

Another question: right now the text is not exactly vertically centered in the cropped image on mobile, how can I make it vertically centered? See attached to see what I mean.

Thanks,

5730.jpg

Link to comment

One last question: would it be possible to do the same thing also for the desktop banners, but manage the desktop banner height separately from the mobile banner height?

I would need the same thing also for dekstop: to be able to adjust the banner height and have the text centered in the image.

Thanks,

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.