html - How to wrap Font-Awesome with CSS? -
i using bootstrap & font awesome, , looking make this:
i have this:
i want this:
markup:
<div class="alert alert-success"><i class="fa fa-paperclip icon-alert"></i> edited!</div>
css:
.icon-alert { font-size: 30px; float: left; margin-right: 10px; opacity: 0.7; }
you'll need set height container , can hide overflow of nested font-awesome icon, using overflow:hidden
.
css:
.clipped-alert{ overflow:hidden; height:55px; }
html:
<div class="clipped-alert alert alert-success"> <i class="fa fa-paperclip fa-5x icon-alert pull-right text-success"></i> edited! </div>
demo
Comments
Post a Comment