gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- Usercode
h2 { text-align: center; color: #333; margin: 20px auto; font-size: 1.5rem; } form { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); max-width: 90%; margin: 20px auto; text-align: center; } label { display: block; font-weight: bold; margin-bottom: 10px; } input[type="text"] { width: calc(100% - 40px); padding: 8px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 20px; max-width: 400px; } input[type="submit"] { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; max-width: 100px; } input[type="submit"]:hover { background-color: #45a049; } .cat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin: 5px auto; /* Reduced margin for better spacing */ max-width: 90%; } .cat-image { height: 180px; width: auto; max-width: 100%; border-radius: 4px; margin-bottom: 10px; } .cat-info { text-align: center; /* Align the text to the center */ margin-bottom: 5px; } h3 { color: #333; margin-bottom: 5px; } p { color: #666; margin-bottom: 5px; } @media (min-width: 600px) { .cat-item { flex-direction: row; align-items: center; /* Center-align items */ } .cat-image { margin-right: 15px; margin-bottom: 0; /* Remove bottom margin in row layouts */ } .cat-info { text-align: center; /* Still center-align text on wider layouts */ } } </style> - Assistant