Practice and reinforce the concepts from Lesson 7
In these activities, you will:
block
, inline
, inline-block
, flex
)Welcome to the CSS Display Activities! This comprehensive set of activities will help you master CSS display properties and reinforce fundamental web design concepts. You'll work through 5 activities that build upon each other, covering everything from basic web design principles to advanced layout techniques.
Total estimated time: 2.5-3 hours
:speech_balloon: Discussion & Learning Activity | Time: 25-30 minutes
Focus: Introduction to Web Design Fundamentals
Learning Objectives:
:bulb: Tip This is a discussion-based activity. Take notes on the key differences between HTML (structure), CSS (style), and JavaScript (behavior).
:computer: Coding Activity | Time: 30-35 minutes
Focus: HTML Structure and Elements
Learning Objectives:
:bulb: Tip Focus on semantic HTML elements like
<header>
,<nav>
,<main>
,<article>
, and<footer>
. These help with both accessibility and SEO!
:computer: Coding Activity | Time: 30-35 minutes
Focus: Advanced CSS Selectors
Learning Objectives:
:bulb: Tip Remember the specificity order: ID selectors (100 points) > Class selectors (10 points) > Element selectors (1 point). When in doubt, use classes for styling!
:art: Design & Coding Activity | Time: 35-40 minutes
Focus: CSS Box Model and Layout Concepts
Learning Objectives:
:bulb: Tip Use the browser's DevTools to visualize the box model! Right-click any element and select "Inspect" to see margins (orange), borders (yellow), and padding (green).
:computer: Advanced Coding Activity | Time: 40-45 minutes
Focus: CSS Flexbox Layout System
Learning Objectives:
:bulb: Tip Start with
display: flex
on the parent container. Then usejustify-content
for horizontal alignment andalign-items
for vertical alignment. The most common pattern isjustify-content: center; align-items: center;
for perfect centering!
Follow these steps to complete the activities successfully:
:warning: Warning Important: Complete all activities before submitting your project. Each activity builds essential skills needed for the final submission.
:information_source: Ready to submit? When you have completed your "Introduction to Web Design" setup and created your Glitch profile, submit it using the form below:
Make sure your profile includes:
- A completed profile page
- At least one sample project
- Proper HTML structure and CSS styling
display: flex
on the parent containerRemember: These activities are designed to reinforce your understanding of CSS display properties and web design fundamentals. Take your time to understand each concept thoroughly before moving forward. Practice makes perfect!