Simple way for icons inside input

Size
1,847 Kb
Views
26,312

How do I make an simple way for icons inside input?

Using Font Awesome CDN and the ::before selector to insert icons in input.. What is a simple way for icons inside input? How do you make a simple way for icons inside input? This script and codes were developed by Hélio Marcondes on 09 November 2022, Wednesday.

Simple way for icons inside input Previews

Simple way for icons inside input - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple way for icons inside input</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<form> <input class="home" type="text" placeholder="USERNAME"> <input class="password" type="password" placeholder="PASSWORD"> <input class="submit" type="submit" value="LOGIN">
</form>
</body>
</html>

Simple way for icons inside input - Script Codes CSS Codes

*{ letter-spacing:2px;
}
input[type="text"]{ box-sizing:border-box; display:block; margin-top:10px; width:300px; height:50px; padding-left:50px; font-size:12px; outline:none;
}
input[type="password"]{ box-sizing:border-box; display:block; margin-top:10px; width:300px; height:50px; padding-left:50px; font-size:12px; outline:none;
}
input[type="submit"]{ box-sizing:border-box; display:block; margin-top:10px; width:300px; height:50px; outline:none; background:#69f; border:0; font-size:14px; color:white;
}
input[type="submit"]:hover{ background:black; -webkit-transition: all 1s ease-out;
}
.home::-webkit-input-placeholder { font-family: FontAwesome, sans-serif;
}
.home::-webkit-input-placeholder::before { font-family: fontAwesome; content:"\f007"; color: #69f; float:right; margin-right:30px;
}
.password::-webkit-input-placeholder { font-family: FontAwesome, sans-serif;
}
.password::-webkit-input-placeholder::before { font-family: fontAwesome; content:"\f084"; color: #69f; float:right; margin-right:30px;
}
Simple way for icons inside input - Script Codes
Simple way for icons inside input - Script Codes
Home Page Home
Developer Hélio Marcondes
Username haykou
Uploaded November 09, 2022
Rating 3
Size 1,847 Kb
Views 26,312
Do you need developer help for Simple way for icons inside input?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Hélio Marcondes (haykou) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!