Font Awesome
Posted in
775
12:43 am, September 12, 2022
Add font awesome icons as placeholder text in inputs
An old one i found on codepen, works with only the old version of font awesome i think. Not tested on the later versions.
HTML
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<textarea placeholder=' Add Comment'></textarea>
<br>
<input type='text' placeholder=' Some Input Text'></input>
CSS
textarea, input {
padding:10px;
font-family: FontAwesome, "Open Sans", Verdana, sans-serif;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
}
External Link for Add font awesome icons as placeholder text in inputs
View Statistics
This Week
4
This Month
2
This Year
149
Add Comment
Other Items in Font Awesome
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript jquery js linux mac modals nginx node php php functions php simple html dom pi400 python react regex sections simplepie php site bugs site documentation sql sqlite ssh sublime svg templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress