Css Codepen - Restaurant Menu Html

body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

li { margin-bottom: 10px; }

section { background-color: #f7f7f7; padding: 1em; margin-bottom: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } restaurant menu html css codepen

<script src="script.js"></script> </body> </html> /* styles.css */

header { background-color: #333; color: #fff; padding: 1em; text-align: center; } body { font-family: Arial, sans-serif; margin: 0; padding:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Restaurant Menu</title> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <nav> <ul> <li><a href="#appetizers">Appetizers</a></li> <li><a href="#entrees">Entrees</a></li> <li><a href="#desserts">Desserts</a></li> </ul> </nav> </header> <main> <input id="filter-input" type="text" placeholder="Filter menu..."> <section id="appetizers"> <h2>Appetizers</h2> <ul> <li class="menu-item"> <h3>Bruschetta</h3> <p> Toasted bread with fresh tomatoes and basil ($8)</p> </li> <li class="menu-item"> <h3>Calamari</h3> <p> Fried squid rings with tangy marinara sauce ($12)</p> </li> </ul> </section> <!-- entrees and desserts sections --> </main>

const menuItems = document.querySelectorAll('.menu-item'); body { font-family: Arial

// script.js