HTML Textbox with a clear button in Pure CSS and without JavaScript
- HTML Textbox with a clear button in Pure CSS and without JavaScript Previews
- HTML Textbox with a clear button in Pure CSS and without JavaScript HTML Codes
- HTML Textbox with a clear button in Pure CSS and without JavaScript CSS Codes
- HTML Textbox with a clear button in Pure CSS and without JavaScript JS Codes
How do I make an html textbox with a clear button in pure css and without javascript?
This is an attempt to make a clearable textbox ( a textbox with a clear button , normally comes for the input type="search". ) . . What is a html textbox with a clear button in pure css and without javascript? How do you make a html textbox with a clear button in pure css and without javascript? This script and codes were developed by Shidhin on 17 July 2022, Sunday.
HTML Textbox with a clear button in Pure CSS and without JavaScript - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>HTML Textbox with a clear button in Pure CSS and without JavaScript</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1> Textbox with a clear button completely in CSS <br> <span class="redfamily">< 0 lines of JavaScript ></span>
</h1>
<div class="search-wrapper"> <form> <input type="text" name="focus" required class="search-box" placeholder="Enter search term" /> <button class="close-icon" type="reset"></button> </form>
</div> <script src="js/index.js"></script>
</body>
</html>
HTML Textbox with a clear button in Pure CSS and without JavaScript - Script Codes CSS Codes
body { background-color: #f1f1f1; font-family: Helvetica,Arial,Verdana;
}
h1 { color: green; text-align: center;
}
.redfamily { color: red;
}
.search-box,.close-icon,.search-wrapper { position: relative; padding: 10px;
}
.search-wrapper { width: 500px; margin: auto; margin-top: 50px;
}
.search-box { width: 80%; border: 1px solid #ccc; outline: 0; border-radius: 15px;
}
.search-box:focus { box-shadow: 0 0 15px 5px #b0e0ee; border: 2px solid #bebede;
}
.close-icon { border:1px solid transparent; background-color: transparent; display: inline-block; vertical-align: middle; outline: 0; cursor: pointer;
}
.close-icon:after { content: "X"; display: block; width: 15px; height: 15px; position: absolute; background-color: #FA9595; z-index:1; right: 35px; top: 0; bottom: 0; margin: auto; padding: 2px; border-radius: 50%; text-align: center; color: white; font-weight: normal; font-size: 12px; box-shadow: 0 0 2px #E50F0F; cursor: pointer;
}
.search-box:not(:valid) ~ .close-icon { display: none;
}
HTML Textbox with a clear button in Pure CSS and without JavaScript - Script Codes JS Codes
// 0 Lines of JavaScript
Developer | Shidhin |
Username | shidhincr |
Uploaded | July 17, 2022 |
Rating | 4.5 |
Size | 2,202 Kb |
Views | 60,720 |
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 |
Transition Spring animation - webkit | 3,116 Kb |
FlipJS Demo | 2,807 Kb |
Click FaceBook Like to Unlock the Offer | 2,945 Kb |
Transition Spring animation - webkit | 3,230 Kb |
Single DIV Love Symbol in CSS | 2,424 Kb |
Simple Timer Display using RiotJS | 3,039 Kb |
Tic Tac Toe Game in Pure JavaScript and CSS | 3,270 Kb |
Simple material ripple | 3,354 Kb |
A Pen by Shidhin | 5,015 Kb |
Fire using CSS animations | 4,096 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 |
UI Challenge - Budget Selector | AgentRR007 | 3,547 Kb |
Right Click Menu | Anodpixels | 2,252 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Blog Concept 2 | JGallardo | 2,994 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Flex Table | Simeonoff | 4,059 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Simple Accordion | Wearebold | 3,683 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!