WordPress.org

Forums

Small descrepency (4 posts)

  1. basketball
    Member
    Posted 10 years ago #

    Are there any css experts that could help me with this?
    <br clear="all" />
    Ie renders this as a line break, and firefox renders this as a line two line breaks. Is there any work around to this?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    div.clearer {
    clear: both;
    line-height: 0;
    height: 0;
    }
    <div id="clearer">&nbsp;</div>

  3. Beel
    Member
    Posted 10 years ago #

    and no such animal as "all", 'tis "both"

  4. jumbo
    Member
    Posted 10 years ago #

    Try:
    .clearer {
    clear: both;
    font-size: 0;
    height: 0;
    line-height: 0;
    overflow: hidden;
    }

    <div class="clearer">
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.