Basic 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>Basic Search Bar</title> <style> body { margin: 0; justify-content: center; align-items: center; background: linear-gradient(135deg, #ff7e5f, #feb47b); font-family: 'Arial', sans-serif; overflow: hidden; background-attachment: fixed; } .search-container { margin: auto; } .search-input { width: 40%; height: 50px; border: none; padding-left: 2%; font-size: 18px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); outline: none; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.9); margin-top: 25%; margin-left:25% ; } .search-input:focus { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); } .search-button { width: auto; height: 50px; background-color: #ff7e5f; border: none; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: background-color 0.3s ease, transform 0.3s ease; padding-left: 3%; padding-right: 3%; font-size: 18px; color: #fff; } .search-button:hover { background-color: #feb47b; } </style> </head> <body> <div class="search-container"> <input type="text" class="search-input" placeholder="Search..."><button type="button" class="search-button">Search</button> </div> </body> </html>