4 ms·
They don't use <i> anymore. They use class icon.
by niels 15y ago
They don't use <i> anymore. They use class icon.
- nhebb 15y agoIt looks like they still do. From http://twitter.github.com/bootstrap/base-css.html#icons http://twitter.github.com/bootstrap/base-css.html#icons <excerpt> How to use With v2.0.0, we have opted to use an <i> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere: <i class="icon-search"></i> </excerpt>
- dhendo 15y agoYes, it looks like the docs are lagging behind the code. You just need to include the icon-something class in a tag.
- nhebb 15y agoThanks for the tip. Even if I never use it anymore, <i> still means italic to me. The thought of using it for icons breaks 15 years of ingrained habit.
- mrpollo 15y agoyeah, it's only their recommendation it doesn't really matter what tag as long as you have the class here is the selector [class^="icon-"]