Remove padding above h1, h2, + box around menu text

Hi,

I’ve searched the forum and tried a few things but can’t figure these two things out.

  1. How can I remove the margin/padding above h1 and h2?
    Tried this in CSS but doesn’t work.

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
margin-top: 0;
margin-bottom: 0;
}

  1. I’ve managed to change the background color of one menu item but I’d like it to look like a box around the text instead, how do I achieve this?

Thank you!

Hello There,

Thanks for writing in! Each of the heading tags has its own default margins and paddings which could contribute extra spaces to this elements. To eliminate the extra spaces, please check out Element spacing in thins knowledge base article:

Hope this helps. Please let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.