Introduction To CSS Flexbox
What you'll learn
- Understand the core concepts behind CSS Flexbox
- Apply Flexbox properties to parent containers and child items
- Use flex-direction, justify-content, align-items, and more
- Control layout behavior with flex-grow, flex-shrink, and flex-basis
- Learn the math behind how Flexbox distributes space
- Understand how Flexbox simplifies responsive design
- Use shorthand properties to write clean, efficient CSS
Requirements
- Basic understanding of HTML and CSS.
- A web browser is required. We will use Google Chrome and will occasionally make use of the Chrome Dev Tools.
- A coding editor is required. We will use VS Code with the Live Server plugin.
Description
This course is designed to help you elevate your HTML webpage layouts using the power of CSS Flexbox — a layout model that gives you precise control over alignment, spacing, and responsiveness.
You’ll learn how each Flexbox property works through clear demonstrations, covering both parent container properties and child item properties.
Properties applied to the parent flex container:
flex-direction – Set the direction items are laid out (row or column)
flex-wrap – Control whether items wrap or stay on a single line
flex-flow – Combine flex-direction and flex-wrap with a shorthand
justify-content – Align items along the main axis (e.g., left, center, space-around)
align-items – Align items along the cross axis
align-content – Control spacing between multiple lines of items
Properties applied to individual flex items:
flex-basis – Define an item’s initial size before space is distributed
flex-grow – Distribute remaining space between flex items
flex-shrink – Control how items shrink when space is limited
flex – A shorthand for setting flex-grow, flex-shrink, and flex-basis
order – Change the visual order of items
align-self – Override alignment for a specific item
To support deeper understanding, the course also includes supporting articles that explain the underlying math behind how flex-grow and flex-shrink distribute or reduce space in different scenarios.
By the end of this course, you’ll not only understand how to use Flexbox — you'll also know why it behaves the way it does, giving you greater confidence and control when building flexible layouts.
Who this course is for:
- Complete Beginners To CSS Flexbox
- Developers who wish to gain a deeper insight into many of the concepts addressed when working with the Flexbox layout model.
- Developers who wish to use Flexbox as their layout model for building responsive web pages.
Instructor
Hi I'm Joshan Grewal, a web developer with 5 years commercial experience. I also hold a Bachelor's degree in Computer Science to which I obtained First Class Honours. During my time at college and university I learnt many languages and frameworks such as HTML, CSS, Javascript, Java, PHP, Laravel and SQL. I've also had exposure to JQuery, Angular and Vue.
After my studies I then worked for a company for 4 years as a PHP developer which taught me a great deal on the best practices for writing efficient code. I've now got to a stage in my career where I want share the knowledge I've gained in website development to inspire others to take up a career within the tech industry. I find the easiest way to pick up a skill is to continuously practice it. I will aim to provide all the knowledge I've acquired over the years to the best of my ability to ensure you are fully equipped to start your journey within the tech industry.