WordPress.org

Forums

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

  1. davehprohoods
    Member
    Posted 1 year 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 1 year ago #

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

  3. davehprohoods
    Member
    Posted 1 year ago #

    [removed]

  4. davehprohoods
    Member
    Posted 1 year ago #

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

  5. davehprohoods
    Member
    Posted 1 year ago #

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

    http://30rangehoods.com/glossary/

    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

Tags

No tags yet.