I'm using FontAwesome
icons in my responsive Bootstrap
website and want to display icons at different sizes depending on the screen resolution.
Ideally I'd like to display the font awesome icons using a percentage of the containers width, i.e. 50% of the width, so they scale up and down. I know that I could probably do this just using svg icons, but I wanted to use FontAwesome
, as I'm using it elsewhere in my site.
I understand you can specify the size using classes, i.e. fa-lg or fa-2x. Would the best solution be to use Bootstrap
classes to hide and display the various sizes depending on screen resolution, or can you get the icons to scale automatically using percentage?