Verse Logo
WEB Dev - Verse'26WEB - V'26
HomeSessionsAssignmentsCode ExamplesMembersLeaderboardAboutContact

Team WEB - Verse'26

Transform from absolute beginner to confident, portfolio-ready web developer in 16 weeks. Master modern web technologies through hands-on projects.

Quick Links

  • Sessions
  • Assignments
  • About
  • Contact

Resources

  • MDN Web Docs
  • W3Schools
  • GitHub
  • CodePen
© 2025 Abdelrhman Nasr. All rights reserved.
Back to Sessions
Week 6CSS Mastery
3 hours

Flexbox - The Layout Revolution

Master modern CSS layouts with Flexbox

Learning Objectives

  • Understand flexbox model
  • Create flexible layouts
  • Align items perfectly
  • Build responsive components
  • Master common flexbox patterns

Topics Covered

  • 1
    Flexbox Philosophy and Use Cases
  • 2
    Flex Container Properties (display, flex-direction, flex-wrap)
  • 3
    Justify-content (main axis alignment)
  • 4
    Align-items (cross axis alignment)
  • 5
    Align-content (multi-line alignment)
  • 6
    Flex Item Properties (flex-grow, flex-shrink, flex-basis)
  • 7
    Flex Shorthand
  • 8
    Align-self and Order

Assignment

Flexbox Landing Page

Build a complete landing page using ONLY Flexbox with responsive navigation, hero section, features section (3-4 cards), and footer. Complete all 24 Flexbox Froggy levels.

Resources

  • • Flexbox Froggy Game
  • • Flexbox Cheat Sheet
View All Assignments

Session's Best Member

AM

Ahmed Mohamed

Grade: 96/100✓ Attended

Recognition:

Masterful flexbox implementation with creative layout solutions

View Full Leaderboard
Session Code & Examples
HTML
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flexbox Landing Page</title>
    <link rel="stylesheet" href="styles.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="nav-logo">
                <h2>FlexLand</h2>
            </div>
            <ul class="nav-menu">
                <li class="nav-item"><a href="#home" class="nav-link">Home</a></li>
                <li class="nav-item"><a href="#features" class="nav-link">Features</a></li>
                <li class="nav-item"><a href="#about" class="nav-link">About</a></li>
                <li class="nav-item"><a href="#contact" class="nav-link">Contact</a></li>
            </ul>
        </div>
    </nav>

    <!-- Hero Section -->
    <section id="home" class="hero">
        <div class="hero-container">
            <div class="hero-content">
                <h1 class="hero-title">Master Modern Web Layouts</h1>
                <p class="hero-subtitle">Learn Flexbox and create beautiful, responsive designs with ease. Perfect alignment, every time.</p>
                <div class="hero-buttons">
                    <button class="btn btn-primary">Get Started</button>
                    <button class="btn btn-secondary">Learn More</button>
                </div>
            </div>
            <div class="hero-image">
                <div class="hero-placeholder">🎨</div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="features">
        <div class="features-container">
            <h2 class="section-title">Why Choose Flexbox?</h2>
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">⚡</div>
                    <h3>Lightning Fast</h3>
                    <p>Create layouts in minutes, not hours. Flexbox makes complex designs simple.</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">📱</div>
                    <h3>Fully Responsive</h3>
                    <p>Your layouts work perfectly on all devices, from mobile to desktop.</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">🎯</div>
                    <h3>Perfect Alignment</h3>
                    <p>Center elements horizontally and vertically with just a few lines of CSS.</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">🔧</div>
                    <h3>Flexible & Powerful</h3>
                    <p>Adapt to different screen sizes and content automatically.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="footer">
        <div class="footer-container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>FlexLand</h3>
                    <p>Making web layouts beautiful and responsive.</p>
                </div>
                <div class="footer-section">
                    <h4>Quick Links</h4>
                    <ul>
                        <li><a href="#">Documentation</a></li>
                        <li><a href="#">Tutorials</a></li>
                        <li><a href="#">Examples</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h4>Connect</h4>
                    <div class="social-links">
                        <a href="#" class="social-link">Twitter</a>
                        <a href="#" class="social-link">GitHub</a>
                        <a href="#" class="social-link">LinkedIn</a>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2024 FlexLand. Built with Flexbox ❤️</p>
            </div>
        </div>
    </footer>
</body>
</html>
Live Preview: Flexbox - The Layout Revolution
desktop viewInteractive preview of the final result
Loading preview...

What you'll see:

Fixed navigation with Flexbox alignment
Hero section with perfect centering
Responsive features grid layout
Flexible footer with multiple sections
Mobile-first responsive design
Smooth hover animations and transitions

A modern, fully responsive landing page built entirely with Flexbox, showcasing perfect alignment, flexible layouts, and smooth responsive behavior across all devices.

Try different device sizes using the buttons above. Click maximize for full-screen preview.

Share & Explore
LinkedIn PostGitHub Repo

Pro tip: Copy the code above and practice building it yourself! Check out the GitHub repo for the complete project files and additional resources.

Previous SessionNext Session