Modern Minimal 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>Modern Minimal Search Bar</title> <style> body { margin: 0; height: 100vh; display: flex; justify-content: center; align-items: center; background: #f5f5f5; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow: hidden; } .search-container { position: relative; width: 40%; border-radius: 50px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .search-input { width: 100%; padding: 15px; border: none; font-size: 16px; border-radius: 50px; outline: none; transition: all 0.4s ease; background: #fff; color: #333; } .search-input:focus { box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .search-button { position: absolute; right: -25px; top: 50%; transform: translateY(-50%); background: #333; 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: #555; } .search-icon { font-size: 18px; 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>