gpt-4-0314· OpenAI
WildChat-4.8M (AI2)
Write me an html code that allows me to make a responsive menu
- User
Write me an html code that allows me to make a responsive menu
- Assistant
.header { background-color: #333; overflow: hidden; }
.header a { float: left; display: block; color: white; text-align: center; padding: 14px; text-decoration: none; }
.header a:hover { background-color: #ddd; color: black; }
.header a.active { background-color: #4CAF50; color: white; }
.header-right { float: right; }
@media screen and (max-width: 600px) { .header a { float: none; display: block; text-align: left; }
code.header-right { float: none; }}