Image Banner text/header doesn't stay central to image height (Ride Theme)

Solved

Image Banner text/header doesn't stay central to image height (Ride Theme)

JayFinlay
Excursionist
27 1 5

I am trying to shrink the image banner with custom css, so far I have this written up: 

 

h2 {
font-size: 18px;
}
@media (min-width: 768px) {
.banner {
display: none;
}
}
.banner {
height: 55px;
}

 

The issue is the text I have attached to the image banner is below the picture and doesn't stay aligned and central to the height of the banner when I adjust the px in CSS.
My website is https://downunderthunder.com.au
Image for reference (Blue area and text below)
Screenshot_21-10-2024_194819_downunderthunder.com.au.jpeg



What am I missing to align it regardless of the px I enter so it's always central.

Thanks in advance for any assistance!

Accepted Solution (1)
JayFinlay
Excursionist
27 1 5

This is an accepted solution.

h2 {
font-size: 18px;
padding-top: unset;
position: relative;
top: -30px;
}
@media (min-width: 768px) {
.banner {
display: none;
}
}
.banner {
height: 55px;
}

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

Please remove this code in Custom CSS of that section 

.banner {
    height: 90px;
}

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

JayFinlay
Excursionist
27 1 5

I need to keep that. The default sizing is too big by default even on small or adapt to image for what I need. I actually want to make it

 

.banner { height: 55px; 

 

I just need the text to stay centered when I adjust the height by this method so it sits perfectly central regardless of px. Is this not possible?

JayFinlay
Excursionist
27 1 5

This is an accepted solution.

h2 {
font-size: 18px;
padding-top: unset;
position: relative;
top: -30px;
}
@media (min-width: 768px) {
.banner {
display: none;
}
}
.banner {
height: 55px;
}