Support » Plugin: Tumblr Widget » [Plugin: Tumblr Widget] Unwanted line break after video posts

  • Resolved Dylan McCall


    Whenever there is a video in my Tumblr widget, I end up with some HTML like this:

    <li class="tumblr_post video"><iframe width="180" height="101.25" src="" frameborder="0" allowfullscreen=""></iframe><br><p>LAVA!! - Ph.Detours Ep. 1 (by <a href="">phdcomics</a>)</p><br></li>

    Those <br> tags result in a whole bunch of unwanted spacing below each video entry. I can add display:none to br in my CSS, but that feels like a horrible solution. I would really prefer to just get rid of them in the first place, since what they (try to) do is better done in CSS anyway.

    Any idea how I can do this? (Or, err, new feature please? :D)

    Thanks! I really like this widget.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gabrielroth


    (Sorry for the delay in responding—the RSS feed for this forum broke, so I’m just catching up.)

    The <br> tag only forces a single line break. If you’re seeing a lot of white space, you could change the line height or other relevant properties in CSS. (That might feel less horrible to you than using ‘display:none’.) If I omitted the tag from the plugin, any text in the post runs on the same line as the video player, which usually looks weird.

    In general, the widget has to make some compromises to account for the variety of stylesheets it’s used with. And I’m loath to clutter the settings with a million checkboxes for every possible option like this—it’s more appropriately addressed in CSS.

    Hope that’s at least slightly helpful.

    Sure, that makes sense 🙂

    I just went ahead and added a CSS rule to hide the line break: br {
    display: none;

    Thank you for the explanation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Tumblr Widget] Unwanted line break after video posts’ is closed to new replies.