[resolved] article tag adding extra space regardless of margin and padding (5 posts)

  1. davehprohoods
    Posted 2 years ago #

    When I run get_template_part('content', 'page') in the while(have_posts) loop in the page.php template, it prints an <article> tag that adds a bunch of space above it, including above a floated element next to it. Margin and padding are 0. Nothing I do fixes it, and I'm not sure how to print another tag instead of article, as it's auto-generated.

    Can anybody explain this?

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Could you post a link to an example of where this occurs?

  3. davehprohoods
    Posted 2 years ago #


  4. davehprohoods
    Posted 2 years ago #

    Nevermind, I wrapped a div around it that floated left, and it fixed it. Not sure why it was broken.

  5. davehprohoods
    Posted 2 years ago #

    Alright, this happened again but wrapping a div that floated it left didn't fix the problem:


    Notice the AdChoices banner has space below the margin and the GLOSSARY text has space above it that is not accounted for by any margin or padding. Explanation or solution?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.