Course Content
CSS Fundamentals
CSS Fundamentals
1. Getting Started with CSS
What is CSS and Why is it Important?Linking CSS to an HTML DocumentMastering CSS Selectors for Styling HTML ElementsChallenge: Apply Your First CSS StylesChallenge: Style with Class SelectorsEnhancing Styles with User Action Pseudo-ClassesChallenge: Apply User Action Pseudo-ClassesChanging Text Colors in CSSOptimizing Workflow for Efficient CSS CodingChallenge: Use Variables for Better CSS Management
3. The CSS Box Model & Spacing Elements
What is the CSS Box Model?Understanding Box Sizing in CSSAdding Space with Margins and PaddingChallenge: Apply Box Sizing to ElementsUsing Structural and Functional Pseudo-ClassesChallenge: Practice Structural Pseudo-ClassesUnderstanding Block, Inline, and Inline-Block ElementsWorking with Block-Level ElementsWorking with Inline ElementsChallenge: Predict Page Layout with Different Element Types
Aligning Items Vertically in Flexbox
The align-items
property governs the vertical arrangement of flex items. Its default value is stretch
.
css
Let's run the following examples to get where do we need it.
stretch
It means that we extend items to the entire length of the cross axis.
index.html
index.css
center
Items are in the center of the cross axis.
index.html
index.css
flex-start
All items start at the beginning of the cross axis.
index.html
index.css
flex-end
All items are in the end of the cross axis (in the end of the parent flex container).
index.html
index.css
baseline
All flex items are aligned based on their text content baseline.
index.html
index.css
1. What does the align-items
property do?
2. Which of the following values can be used with the align-items
property?
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 4