How to shrink area with CSS

I’m using the Affinity theme as seen in this link: Affinity Theme

I’d like to shrink the height of the area directly under the navigation bar and above the banner image. The area containing the title text “AFFINITY Michael David Design”

I know this can be adjusted in CSS and am wondering if someone can help out with the code.

Thank you!

This should work:

#titlelogo {
    padding-top: 50px !important;
}

You can change the 50px as needed. The original setting is 75px.

3 Likes

You’re a hero!
Thanks a lot!

1 Like

Glad to help and glad it worked for you. :grinning:

1 Like

1 more question - would you know the CSS that will allow me to shrink in height the area that contains the banner?

I did see this on the page:

(Banner width is set at 960px. Banner image heights are not limited by the theme but determined by you. Recommended height is 400px for proper extra container #2 display).

But i suppose you could also use this:

#featureImg {
    height: 400px !important;
}

The original setting is height: auto

That code decreases the height of the area but it also squeezes the banner image. I’m wondering if it’s possible to just decrease the height of the area containing the banner, without affecting the banner image?
Thanks again the help!

Do you mean reducing the white space on the top and bottom of the banner?

To reduce the space above the banner:

.tshead {
    padding-bottom: 0px !important;
}

The original value is 25px.

To reduce the space below the banner:

section #padding {
    margin-top: 0px
    padding: 15px 0 0; !important;
}

The original value is 40px for margin-top and for padding 45px 0 0.

For some reason those aren’t having an effect.
I’m probably doing something wrong.
Will keep working at it.
Appreciate the help!

This is what I see with that CSS applied:

Totally understand. Unfortunately I can’t publish quite yet as I’d be overwriting the existing site that needs to stay up. Will keep experimenting

Maybe try pasting the CSS as plain text? It might be grabbing the formatting from the forum post.