CMS Development

tette_engage
Top Contributor

Removing header height value

SOLVE

I'm working on a transparent header menu, which in itself works fine, but the height value of the header pushes my content down. When I enter my page it looks like I have a white header menu, but when I scroll it 'transforms' to being transparent. If I change the header height to 0px, my content rises to the top but the header itself vanishes. What code could bump my content to top, while keeping my header as is?

 

Thanks!

0 Upvotes
1 Accepted solution
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Removing header height value

SOLVE

@tette_engage - you have an inline style on the div. You should be able to add this css to a stylesheet to override it:

.body-container-wrapper {
    margin-top: 0 !important;
}

If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

View solution in original post

0 Upvotes
5 Replies 5
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Removing header height value

SOLVE

@tette_engage - can you please post a preview link so we may give you some code back?

0 Upvotes
tette_engage
Top Contributor

Removing header height value

SOLVE
tjoyce
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Removing header height value

SOLVE

@tette_engage - you have an inline style on the div. You should be able to add this css to a stylesheet to override it:

.body-container-wrapper {
    margin-top: 0 !important;
}

If this answer helped, please, mark as solved 😄


tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.

 

Drop by and say Hi to me on slack.

0 Upvotes
tette_engage
Top Contributor

Removing header height value

SOLVE

Wow, that was fast! Thanks a lot!

tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Removing header height value

SOLVE

You're welcome!

0 Upvotes