javascript - Stretch and scale font-awesome icon dynamically -


i've seen countless snippets like one, include font "background image":

div  {     width : 100%;     height : 200px;     margin : 20px;     background-color : grey;     color : #fff;     position : relative; }  div:before {       position:absolute;         font-family: fontawesome;         top:0;         left:0px;       font-size : 100px;       content: "\f003"; } 

jsfiddle

result:

enter image description here

is there way make font resize dynamically fill 100% size background image, similar of methods used here? or there way can use background image in responsive page, wouldn't know width/height of container it's going fill?

i'm thinking of using transforms: css, can stretch text? in case it's difficult because don't know how have scale it.

i thought i'd ask question because maybe there's way it, prior falling plain old background image.

additional links didn't (much):


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -