Question

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?

Was it helpful?

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

OTHER TIPS

are you not looking for something like this?

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

http://jsfiddle.net/seany789/dxQBy/4/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top