Site logo

Archived topic

Sections have padding despite 0px

6 replies · Started by Bebe on March 13, 2017

Viewing posts 1–7 of 7

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

Try this:

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

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

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;
}

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;
}
This archived topic is closed to new replies.