[Support request] Sections have padding despite 0px

Home Forums Support [Support request] Sections have padding despite 0px

Home Forums Support Sections have padding despite 0px

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #290653
    Bebe

    Sections on the homepage have top padding despite being set at 0px
    http://absolutewebdesigns.co/casey/

    How to remove this?

    #290709
    Leo
    Staff
    Customer Support

    Hi there,

    I think that might be causing by the syntax error in your code. I see this:
    <div class="class=" col-md-12" "> before this picture: http://absolutewebdesigns.co/casey/wp-content/uploads/2017/03/Garden-Fairy.jpg

    Try fixing that and see if it fixes the problem?

    #290730
    Bebe

    Fixed that, but it’s still showing a space.

    #290732
    Leo
    Staff
    Customer Support

    Try this:

    div#generate-section-4 p {
        margin: 0;
    }
    #290784
    Bebe

    Nope. And that will also screw up all the section 4 containers throughout the site, not just this one.

    #290785
    Leo
    Staff
    Customer Support

    Do you have an empty space/paragraph inserted in that section? I don’t think that space should be there in the first place.

    Otherwise you can target just that page like this:

    .page-id-10 div#generate-section-4 p {
        margin: 0;
    }
    #290822
    Tom
    Lead Developer
    Lead Developer

    If you have a shortcode in that section, it may be the shortcode adding the empty paragraph tag.

    To add to Leo’s CSS, you can target empty p tags only:

    .page-id-10 div#generate-section-4 p:empty {
        margin: 0;
    }
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.