Search field
How do I make an search field?
Search field using icon font to show icon inside of input field. What is a search field? How do you make a search field? This script and codes were developed by James Barnett on 11 August 2022, Thursday.
Search field - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>search field</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url("//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css");
body { margin: 30px; }
.search { position: relative; color: #aaa; font-size: 16px;
}
.search input { width: 250px; height: 32px; background: #fcfcfc; border: 1px solid #aaa; border-radius: 5px; box-shadow: 0 0 3px #ccc, 0 10px 15px #ebebeb inset;
}
.search input { text-indent: 32px;}
.search .fa-search { position: absolute; top: 10px; left: 10px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="search"> <span class="fa fa-search"></span> <input placeholder="Search term">
</div>
</body>
</html>
Search field - Script Codes CSS Codes
@import url("//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css");
body { margin: 30px; }
.search { position: relative; color: #aaa; font-size: 16px;
}
.search input { width: 250px; height: 32px; background: #fcfcfc; border: 1px solid #aaa; border-radius: 5px; box-shadow: 0 0 3px #ccc, 0 10px 15px #ebebeb inset;
}
.search input { text-indent: 32px;}
.search .fa-search { position: absolute; top: 10px; left: 10px;
}
Developer | James Barnett |
Username | jamesbarnett |
Uploaded | August 11, 2022 |
Rating | 3.5 |
Size | 2,100 Kb |
Views | 34,408 |
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 |
Extremely simple loading animation | 1,804 Kb |
CSS speech bubble | 2,293 Kb |
Ready to Launch | 10,309 Kb |
Github-style Daily Activity Chart | 4,334 Kb |
Simple memory game in JS | 2,500 Kb |
Browser hack for Firefox | 1,520 Kb |
CSS3 Image Wall | 2,609 Kb |
Custom select box | 2,323 Kb |
HTML-only captcha | 1,630 Kb |
A Pen by James Barnett | 1,548 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 |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Subtle site navigation with description | Necks | 3,206 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
AOR site logo | Thatbram | 2,527 Kb |
We Simplify animation | Meodai | 48,169 Kb |
Awesome | Samarthpd | 2,901 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 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!