Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Reduce Banner Size But Keep Content Centre


jonaverill

Question

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

Edited by jonaverill
Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0

First, you can remove padding top/bottom

Second, you can try position: absolute with transform for images

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0

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
 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...