Jump to content

Reduce Banner Size But Keep Content Centre

Recommended Posts

Posted

Hey All, 
Just trying to do an CSS edit I can't quite get right. I'm making sections smaller in this design. At the moment the #Sponsors section. 
I can reduce height but want to keep content centre vertically.

I think it's something to do with "transform: translateY(-50%);" but a nudge in the right direction would be great. 

https://snail-bell-7n3r.squarespace.com
pass: wellfest

Thanks everyone 

Screenshot 2019-11-23 at 21.26.30.png

  • Replies 2
  • Views 601
  • Created
  • Last Reply
Posted

Thanks again @tuanphan
I have been previously using messy hacks to do this. Just wanted to learn how to do it properly from now now. 
At the moment here's what I have. Which just about works on desktop. I have to create another for mobile. 
But it all feels very messy still. I'll do more research & see if I can figure it out. 

Any more guidance would be great. 
Also going to mail you with another question via your site. 

 

Thanks 

 

#sponsors
{
height: 200px;
margin-top: -10px;
margin-bottom: -10px !important;
}
#sponsors
.sqs-block-gallery
{
  position: relative;
  top: -40px;
  left: 30px;
  right: 30px;
}

 

 

 

https://snail-bell-7n3r.squarespace.com
pass: wellfest
 

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.