Simple way for icons inside input
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 - 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;
}
Developer | Hélio Marcondes |
Username | haykou |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 1,847 Kb |
Views | 26,312 |
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!
Name | Size |
Pure AngularJS Tabs | 2,067 Kb |
Custom scrollbar crossbrowser | 5,348 Kb |
Introduction to three.js | 1,916 Kb |
Speedometer, Velocimeter | 2,256 Kb |
Sticky Header using Jquery | 2,024 Kb |
Side Menu using AngularJS | 1,988 Kb |
Search button expanding input submit | 2,065 Kb |
Flip CSS Animation with Logo | 1,797 Kb |
Upload image with preview | 2,014 Kb |
Simple clock with AngularJS | 1,867 Kb |
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!
Name | Username | Size |
STIKHOI | Denmch | 7,122 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Sass random color animation | Jotavejv | 4,827 Kb |
Blog Concept 2 | JGallardo | 2,994 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Automatic scroll | Skeurentjes | 4,042 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!