How to combine multiple classes in CSS -
i using fontawesome on website. use envelope, have use following 3 classes so:
<i class="fa fa-envelope-o fa-2x"></i> is there anyway combine them single class or create new css file single rule refer here?
i don't think, can skip .fa class, provides base rule , font definition. can, may skip .fa-2x giving:
.fa {font-size: 2em;} but remember, make fonts 2x bigger.
if still wish make single one, use:
.fa-envelope-o { /* copy contents .fa */ font-size: 2em; } on side-note, please keep tags in lower case.
Comments
Post a Comment