• Resolved Ponken

    (@ponken)


    Hi there,
    I’m in the final stages of putting together a custom theme for a Doctor Who podcast site, and there’s one thing I can’t figure out how to fix.

    There is an empty space between the post excerpt and the Category/Tags (here bundled together as “Tagged”). I’ve made all margins and paddings 0px and they’re all within a padded div, but the category and tags are all showing up at the very bottom of the div (inside the padding). Weirdly, I made a static version of the design with the exact same CSS and it looks just fine there:

    <b>The WordPress version:</b>
    https://whobackwhen.com/

    <b>The static version:</b>
    https://www.lionloungemedia.com/web_projects/who/

    Do the_category and the_tags add some sort of padding above, and if so how can I remove it? Or have I missed out something else?

    Here’s what I’ve got in the WP version (pasting the whole section’s worth here, just in case):

    [no need to post code here – it’s all visible on your site]

    Any help would be hugely appreciated! Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The paragraph element above the tags has a bottom margin by default.

    Thread Starter Ponken

    (@ponken)

    Hi WPyogi,
    I know, but I’ve set the margin for that paragraph class to 0px as well.
    Cheers

    That’s not what shows up in Firebug… Make sure you’ve validated your CSS if it’s not behaving.

    Thread Starter Ponken

    (@ponken)

    Brilliant! Works like a charm now.
    I hadn’t taken into account that the_excerpt creats <p> tags of its own … which I had not styled.

    Thanks very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Irremovable space above category span’ is closed to new replies.