Search code examples
htmltinymcecssclearfix

Inline clearfix before <strong> in css


I would like to break the line automatically before a <strong> tag begins. I'd try a couple of things, but can't find out how to do so.

I tried:

strong, b {font-weight: bolder;clear:both;display:block;}

and

strong:before, b:before {clear:both;display:block;height:1%}
strong, b {font-weight: bolder;}

Is there any solution for this?


Solution

  • Here

    strong:before {
        content: "";
        display: table;
        clear: both;
        zoom: 1.0;
    }
    

    http://jsfiddle.net/dxQBy/8/

    I learned about this a few weeks ago after running across A new micro clearfix hack - Nicholas Gallagher