Skip to main content
Known Participant
December 18, 2018
Answered

h tag margins

How come I have these big margins under my h tags that I can't reduce like the h1 tag for example? Can someone help me reduce the padding between the h tags and the text?

All Together Now

This topic is closed to new replies. Start a new post to keep the conversation going.
Nancy OShea
Nancy OSheaCorrect answer
Community Expert
December 19, 2018

To shore up Angel's Junk Removal with the line below, use this code in your all-together.css file.

.center-article h1 {

    color: #5a7f0e;

    text-align: center;

    padding: 0;

    margin: 0;

}

See screenshot.

This  <h3> has an 80px top margin which is coming from all-together.css

.col-wide-2 h3 {

    color: #5a7f0e;

    text-align: center;

    font-size: 30px;

    margin-top: 80px;

}

Nancy O'Shea— Product User & Community Expert

4 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
December 19, 2018

To shore up Angel's Junk Removal with the line below, use this code in your all-together.css file.

.center-article h1 {

    color: #5a7f0e;

    text-align: center;

    padding: 0;

    margin: 0;

}

See screenshot.

This  <h3> has an 80px top margin which is coming from all-together.css

.col-wide-2 h3 {

    color: #5a7f0e;

    text-align: center;

    font-size: 30px;

    margin-top: 80px;

}

Translate
Nancy O'Shea— Product User & Community Expert
ALsp
Legend
December 19, 2018

LOL, I wish the forum would default to the actual URL . I didn't even notice the page link

Translate
Nancy OShea
Community Expert
Community Expert
December 19, 2018

This forum grabs the URL's page title.  It takes getting used to.

Translate
Nancy O'Shea— Product User & Community Expert
ALsp
Legend
December 18, 2018

Heading tags (h1-h6) have default margins. What CSS are you using to create your page?

Translate