0% completed
Build a menu bar that meets the following requirements:
Explanation:
Structure & Layout:
<ul>
) with the class .menu
, where each list item (<li>
) represents a menu item.display: flex
) is used to create a horizontal layout by default.Responsive Behavior:
@media (max-width: 600px)
changes the flex direction to column, stacking the menu items vertically on small screens.Styling and Hover Effects:
<a>
) display as block-level elements with padding, centered text, and white color.:hover
pseudo-class, which changes the background color for visual feedback.This solution meets all the challenge requirements by providing a responsive, interactive menu bar with a clear layout adjustment based on the screen width.
.....
.....
.....