Html Css Dropdown Menu Codepen Link

.dropdown-menu a:hover background: #f8fafd; color: #1a4972; border-left-color: #2c7da0; padding-left: 1.9rem;

/* keep dropdowns inside view on small screens */ @media (max-width: 900px) .dropdown-submenu > .dropdown-menu left: 0; top: 100%; margin-top: 0.3rem; html css dropdown menu codepen

body background: linear-gradient(145deg, #e9f0fc 0%, #d9e2ef 100%); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; .dropdown-menu a:hover background: #f8fafd

/* main link style */ .nav-link display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.4rem; font-weight: 600; font-size: 1rem; color: #1f2e3a; text-decoration: none; border-radius: 2.5rem; transition: all 0.25s ease; background: transparent; letter-spacing: -0.2px; .dropdown-menu left: 0

/* optional icon inside dropdown */ .menu-icon font-size: 1.1rem; display: inline-block; width: 1.4rem; text-align: center;