Site logo

Archived topic

Minimum depth of Top Bar

5 replies · Started by David Bennett on January 26, 2022

Viewing posts 1–6 of 6

I want narrow top bar - just enough depth to add a one-line text message. When I set height of the bottom margin even to zero, the bar is still deeper than I want it to be.

I haven't set it because I can't get it to display 'thin' enough for what I want.

Is that standard, and something else is interfering with it?

How to change it?

Hi there,

the Themes Top Bar has 10px top and bottom padding, awhich you can change with some CSS eg to set the top and bottom to 2px:

.top-bar .inside-top-bar {
    padding: 2px 40px;
}

Thanks David
It isn't working - that is, the distance from the text to the top of the page is changing, but the distance from the text to the bottom is not changing.

Now add this:

.top-bar p {
    margin-bottom: 0;
}

Success! Thanks

Glad to hear that!

This archived topic is closed to new replies.