gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
Can you make me a website have search bar red theme and only using html and CSS (not…
- User
Can you make me a website have search bar red theme and only using html and CSS (not much advanced)
- Assistant
Sure! Here is an example of a simple website with a red-themed search bar using basic HTML and CSS:
<!DOCTYPE html> <html> <head> <title>Red Theme Website</title> <style> body { background-color: #f5f5f5; font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; } .search-bar { display: flex; justify-content: center; margin-bottom: 20px; } .search-input { width: 300px; height: 40px; border: none; border-radius: 20px; padding: 5px 10px; font-size: 16px; color: #fff; background-color: #ff5252; outline: none; } .search-input::placeholder { color: #fff; } .search-input:focus { background-color: #ff0000; } .search-button { width: 80px; height: 40px; margin-left: 10px; border: none; border-radius: 20px; font-size: 16px; color: #fff; background-color: #ff0000; cursor: pointer; outline: none; } .search-button:hover { background-color: #ff3333; } </style> </head> <body> <div class="container"> <div class="search-bar"> <input type="text" class="search-input" placeholder="Search"> <button class="search-button">Go</button> </div> <!-- Rest of the website content --> </div> </body> </html>You can copy this code and save it as a
.htmlfile, then open the file in your web browser. It will display a red-themed website with a search bar at the top.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.