Highly Styled Search Bar - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Highly Styled Search Bar</title> <style> body { margin: 0; height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(to right, #000046, #1cb5e0); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow: hidden; } .search-container { position: relative; width: 50%; border-radius: 50px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .search-input { width: 100%; padding: 20px 20px 20px 60px; border: none; font-size: 20px; border-radius: 50px; outline: none; transition: all 0.4s ease; background: #fff; } .search-input:focus { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .search-button { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: linear-gradient(to right, #ff416c, #ff4b2b); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; } .search-button:hover { background: linear-gradient(to right, #ff4b2b, #ff416c); transform: scale(1.1); } .search-icon { font-size: 20px; color: white; } </style> </head> <body> <div class="search-container"> <input type="text" class="search-input" placeholder="Search..."> <button type="button" class="search-button"> <span class="search-icon">🔍</span> </button> </div> </body> </html>