Restaurant Menu Html Css Codepen ^hot^
to align titles and prices. A classic look is to have the dish name on the left and the price on the right. Typography:
/* CTA */ .cta-button text-align: center; margin-top: 2rem; restaurant menu html css codepen
.restaurant-name font-size: 2.4rem;
.menu-grid grid-template-columns: 1fr; gap: 1.5rem; to align titles and prices
/* badge for diet */ .diet-badge position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); padding: 0.2rem 0.7rem; border-radius: 40px; font-size: 0.7rem; font-weight: 600; color: white; letter-spacing: 0.3px; font-family: monospace; .restaurant-name font-size: 2.4rem
// Add click event to each tab button tabButtons.forEach(button => button.addEventListener('click', () => // Remove active class from all tabs tabButtons.forEach(btn => btn.classList.remove('active')); // Add active class to clicked tab button.classList.add('active');