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"; }
result:
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
Post a Comment