Inline clearfix before <strong> in css
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?
Solution
Here
strong:before {
content: "";
display: table;
clear: both;
zoom: 1.0;
}
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;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow