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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -