Restaurant Menu Html Css Codepen Instant
<main> <section id="mains" aria-labelledby="mains-heading"> <h2 id="mains-heading">Mains</h2> <ul class="menu-list"> <li class="menu-item"> <div class="item-head"> <h3 class="item-name">Grilled Salmon</h3> <span class="price">$18</span> </div> <p class="item-desc">Lemon butter, seasonal vegetables.</p> </li> </ul> </section> </main>
.dietary-icons display: flex; gap: 0.4rem; font-size: 0.8rem; color: #7f8c8d;
Use code with caution. 3. Designing with CSS Custom Properties and Layout Tools restaurant menu html css codepen
.menu-item:hover transform: translateY(-4px); box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.15); border-color: #e67e2240;
Let’s build the style.css file step by step. For a , we typically write everything in the CSS panel. For a , we typically write everything in the CSS panel
<section class="menu-section"> <h2 class="section-title"><i class="fas fa-mug-hot"></i> Drinks</h2> <div class="menu-items"> <div class="menu-item"> <div class="item-info"> <h3>Fresh Lemonade <span class="price">$3.50</span></h3> <p>Squeezed daily with mint and a touch of honey.</p> </div> </div> <div class="menu-item"> <div class="item-info"> <h3>Espresso <span class="price">$2.50</span></h3> <p>Rich, bold single shot of organic espresso.</p> </div> </div> <div class="menu-item"> <div class="item-info"> <h3>House Red Wine <span class="price">$8.00</span></h3> <p>Glass of our signature Cabernet Sauvignon.</p> </div> </div> </div> </section>
Vegetarian
@keyframes float 0%, 100% transform: translate(0, 0) scale(1); 50% transform: translate(30px, -20px) scale(1.05);
<!-- Menu Section --> <section id="menu" class="py-20 px-6"> <div class="max-w-5xl mx-auto"> <!-- Section header --> <div class="text-center mb-16 reveal"> <p class="text-[var(--accent)] uppercase tracking-[0.2em] text-sm mb-3">Our Selection</p> <h2 class="font-display text-4xl md:text-5xl font-bold">The Menu</h2> </div> i class="fas fa-mug-hot">
Let's produce the article. How to Create a Stunning Restaurant Menu Using HTML, CSS, and CodePen