reduce spacing between h2, h3 and body text

  • Unknown's avatar

    what coding would I use to reduce the spacing between h2 and h3 and the body text that follows these headings? I’ve tried

    padding-bottom: 0px;

    but its not working. any help would be appreciated :)

    The blog I need help with is: (visible only to logged in users)

  • To reduce the space between h3 and the text following it, modify the following custom CSS you already have in place to lower the bottom margin from the current 9px to say 6px or whatever you would like:

    #content p, #content ul, #content ol, #content dd, #content pre, #content hr {
    margin-bottom: 9px;
    }

    To reduce the space h2 and the following text, add the following rule and replace 12px with some px lesser than 12 like say 5px or whatever you would like:

    .entry-content, .entry-summary {
    	padding: 12px 0 0 0;
    }

    Please let me know how it goes :-)

  • Unknown's avatar

    Thank you for responding chaitanyamsv!

    I wanted to change the bolded headings/paragraph text to tried to h3 headings because I thought ‘headings’ were important for SEO ranking? however I’ve tried updating the css so that the bolded headings could be changed to h3 but I couldn’t figure out how to. this is the coding I used:

    I have this coding in my css:

    #content p,
    #content ul,
    #content ol,
    #content dd,
    #content pre,
    #content hr {
    margin-bottom: 9px;
    }

    p {
    line-height: 1.5;
    }

    h3 {
    font-size: 1em;
    padding-top: 5px;
    padding-bottom: 0;
    }

    So because the h3 coding above didn’t work I just ended up changing the ‘text’ to the following coding and kept it as paragraph text:

    <p style=”padding-bottom: 0; padding-top: 12px;”>Live a healthier life with Isagenix</p>

    this has given me the spacing I wanted but i’m just worried it has not increased my chances of improved seo ranking?

    I couldn’t figure out how to

  • I don’t think SEO depends on the style of your content.

    I encourage you to read All About SEO on WordPress.com to understand what impacts SEO on WordPress.com :-)

  • Unknown's avatar

    Thank you! I will do some more reading/learning ;)

  • The topic ‘reduce spacing between h2, h3 and body text’ is closed to new replies.