gpt4all-13b-snoozy· OpenAI
Arena Human Preference 55K
Write a csss code to change button color when hover
- User
Write a csss code to change button color when hover
- Assistant
#button { background-color: #333; color: white; border: none; padding: 10px; cursor: pointer; transition: background-color 0.2s ease; /* Add this line */ } #button:hover { background-color: #ccc; /* Change color on hover */ }This CSS code sets the background color of a button to #333, and changes the color to #ccc when the button is hovered over. The
transitionproperty adds a smooth transition effect to the background color change.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.