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
Justifying Content Horizontally in Flexbox
The justify-content
property is instrumental in determining the position of flex items along the main axis. Its default value is flex-start
.
css
Let's consider each case on practice. We will play with the list of cards.
flex-start
Default value, which makes all the items be at the start of the main axis.
index.html
index.css
flex-end
All items are at the axis end.
index.html
index.css
center
All items are in the center.
index.html
index.css
space-around
It distributes all the items evenly along the main axis with a bit of space left at either end.
index.html
index.css
space-between
It is very similar to space-around
except that it doesn't leave any space at the axis on both ends.
index.html
index.css
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 3