Kevin Powell /CSS Demystified: Start Writing CSS with Confidence (Module 1-3)

Would you like to write CSS with confidence?

Have you ever written a line of CSS expecting one thing to happen, only for it to do the exact opposite of what you were hoping for?

Have you ever written a line of CSS as a guess, crossing your figures that it might fix your problem… somehow, hopefully?

Or maybe you’re an expert at finding a solution on Stack Overflow, only for it to half-work and then have to waste time trying to get it to work on your own site?

  • $47

CSS Demystified: Start Writing CSS with Confidence (Module 1-3)

  • Closed

Start understanding CSS instead of just hacking your way through it.

Imagine a day where you could write CSS and know exactly what was going to happen.

Or, when something doesn’t work, you know why it didn’t work and can quickly fix it without having to ask someone or do a Google search.

That day is just around the corner.

I know it's right around the corner because I've been there too, as have countless students of mine.

It's about learning how CSS actually works

It isn’t about learning all of the properties of CSS — which is what most tutorials and courses do, they say “here is a bunch of different things you can do with CSS” — but learn how CSS itself works.

The biggest reason people have so much trouble is that they don’t even know about the fundamentals which CSS is built upon. 

People learn about things like the cascade and specificity, but they don't really understand how they work.

Then there are the things that people often have never heard of, such as formatting contexts and stacking context.

Could you explain to someone else how these work?

Have you even heard of them?

Your teacher for this course

My name is Kevin Powell and I teach people CSS, both in the classroom and to over 100,000 people on YouTube.

Being a teacher, I'm constantly being asked "why isn't this working", and "what can I do to fix this?"

Many of the problems I see people coming across are popping up due to their lack of the fundamentals of CSS, even though they're often things they tell me that they know.

That's why I created this course. It's literally to answer the question of "why isn't this working".

CSS is a beautiful language, but it gets a bad wrap because people don’t understand how it works

There is nothing wrong or broken with CSS.

Beginners get frustrated because some of it seems counter-intuitive. People coming from other languages get frustrated with it because it doesn’t work the way they think it should.

This course is put together to show you how CSS is meant to work and make sure you understand the fundamentals that it’s built on top of. 

I’m also going to teach you how you can continue to learn in a way that helps you understand why problems happen in the first place. The underlying theories are an important part of this, but it’s not the end of the road. 

I want to help you be a master of CSS and be able to use it to do what you want, instead of fighting against it half the time.

Who is this course for?

This course is for you if:
  • You already understand the very basics of CSS, but struggle implementing what you know
  • You lack confidence when writing CSS. You feel like you know it, but feel like something is holding you back
  • You're coming from the back-end world, or are more familiar with JavaScript, and are trying to figure out this whole CSS thing
This course is not for you if:
  • You aren't at all familiar with HTML and CSS yet
  • You are hoping to have the answers delivered on a silver platter

When you join, you’ll be getting access to:


The overlooked fundamentals
People have heard of these fundamental concepts, but often ignore them because they seem relatively simple. A lot of people feel that they know them really well, but this is one of the places where many people, from beginners to experienced developers make mistakes. 

This section of the course covers:
  • The cascade: everyone knows the cascade, but so many people still make mistakes with how it works, and often see the global scope of CSS as a problem instead of a feature.
  • Inheritance: understanding inheritance — and what is and isn't inherited — lets you start taking advantage of one of the most powerful parts of the cascading
  • Specificity: Naming things in CSS is hard enough, and when you don't really understand specificity, it's even worse.

The unknown fundamentals
These are literally the most fundamental concepts of CSS, the things that dictate how the page is rendered, and yet most people have never even heard of them.

  • Formatting contexts: There are a number of these, but they are all very similar to one another. Knowing what creates a new formatting context, and what that means, can help you start understanding why certain CSS tricks and hacks actually work.
  • Stacking context: Have you ever run into an issue with z-index? For something which seems relatively simple (the bigger the number, the "higher" it's stacked), there are some complications that can arise with z-index. If you understand stacking context, you'll know what is causing any z-index issue, as well as how to fix it.

Bonus Content

  • A workbook to help reinforce your learning throughout the lessons, and which can be a quick reference guide when you are done
  • How to learn CSS the right way guide
  • CSS challenges to help you put reinforce what you've learned in this course
  • Private Community channel

BONUS: Private Community Channel

If you follow me on YouTube, you might already know of my community which hosted on a Discord server. Heck, you might even be a member!

When you join this course, you'll get access to private channels inside that server dedicated to this course. In there, you can discuss course content and ask questions to me as well as other course members.

BONUS: How to learn CSS the right way - A guide & challenges

Have you ever been told that the best way to learn CSS is to "build something"? This PDF guide does the opposite. It outlines effective strategies to learn CSS in a way that will stick, not only helping you accomplish what you need to do, but making sure you understand everything you are doing too.

Start understanding CSS instead of just hacking your way through it

Stop wasting your time hoping that your CSS is going to work and start txruly understanding the fundamentals that will step your game up to the next level.

Contents

Introduction

And introduction to the course
Welcome to CSS Demystified!
My software and extensions
The Discord Community
The rules!
Pacing yourself
The course material
A Figma File to experiment with
Using Figma
00-intro.zip

Understanding CSS

Before we really dive in, we need to understand CSS, from the vocabulary we use to talk about it to why it is the way it is (because it is a little bit weird!), and how we can't look at CSS in isolation like we can some other languages 😊.
CSS Anatomy/Terminology - So we can all be speaking the same language
Preview
Why is CSS so weird? An introduction
Preview
Why is CSS so weird?
Preview
Why is CSS so weird? A follow-up
Preview
CSS is all about relationships
Preview
01-understanding_css.zip

Overlooked Fundamental 1: The box model

Introduction to the Overlooked Fundamentals
Preview
The box model and box-sizing
Preview
What happens when we don't set a width?
Preview
What happens when we set a width
Preview
Adding box-sizing
Preview
Fixing a layout
Preview
A quick word on setting heights
Preview
02-box-model.zip

Overlooked Fundamental 2: Inheritance

Inheritance
Preview
A quick look at inheritance in action
Preview
A little project
Preview
A little project | Starting files
A little project | my solution
A little project | Follow-up
Getting browser styles in Firefox
03-inheritance.zip

Overlooked Fundamentals 3: The Cascade

Introduction to the Cascade
How well do you really know it?
Importance and Origin
Origin and font-size implications
When animations and transitions get involved
Closing thoughts on Importance
Specificity
Fixing specificity issues
Calculating specificity
04-cascade.zip

Putting it into practice

Pricing Cards - downloads
A safe approach to CSS
Pricing Cards | Introduction
Challenge | Pricing Cards
Pricing Cards - Version 2 - Downloads
My Solution | Pricing Cards
Updated Design
Updated Design - Downloads
Updated Design | My solution
Adding in custom properties
Setting up the typography
Mirroring the layout
Starting to think about class naming
05-practice.zip

Overlooked Fundamentals: Wrap up

Overlooked Fundamentals | Final Project
Overlooked Fundamentals | Final Project Files
My solution
A word on class naming
A word on class naming - different options
Overlooked Fundamentals | Wrap up
06-module_1-wrap-up.zip

Unknown Fundamentals: Introduction

The Unknown Fundamentals | Introduction
Unknown Fundamentals | Project 1 introduction
Project files
Teaching you how to fish
Articles to read
01-unknown-fundamentals-intro.zip

Unknown fundamentals: formatting context

Introduction to Formatting Contexts
Inline formatting context and anonymous boxes
Block formatting context
Formatting context and floats
Collapsing margins in action
Creating a new formatting context
Flex and grid formatting contexts
Consistency
Creating a CSS rule for Flow Content consistency
Adding consistency to our magic page
Magic site | mini-challenge files
Magic page finishing touches
A look at the updated design
Magic site v2 | Project files
Easy wins
Adding columns
The square corner decorations
Stepping up our spacing utility
02-formatting-context.zip

Unknown Fundamentals: Stacking Context & Containing Blocks

Stacking Context and Containing Blocks Introduction
Introduction to Stacking Context
Exploring z-index
Stacking context deep dive
Stacking context in action
When stacking context breaks things
An important clarification on z-index
Stacking context coming into play
Stacking context mini-challenge | Files
Fixing the stacking issue
Introduction to containing blocks
When the containing block is not the parent
Containing blocks on the magic site
Containing blocks in action
Containing blocks, a more complex example
Containing block edge cases
A look at the updated design
Updated Magic Site | Project Files
More easy wins
Setting up the typography
Fun with custom properties
The testimonial
Even more custom properties
The corner squares - updated
Call to actions
Module wrap-up
Extra reading
03-stacking-context.zip

Content vs. Layout

Captions will be added soon!
Introduction to Module 3
Content vs Layout
Remember this?
Remember this - Files
Fixing the problem
A deeper look at Flexbox
Content vs Layout in action | Files
Content vs Layout in action | Introduction
Making things more consistent | In Action
Styling things up with utility classes | In Action
Plug and play | In Action
More Dynamic Layouts | In Action
content-vs-layout.zip

Final Project | The homepage

Introduction to the final project
Final Project Starting Files
A look at what we're building
Writing the HTML
Bringing in, and building out, our reset
Styling the typography
Making the typography responsive
Adding in our spacing
More spacing!
Adding columns
Backgrounds
Styling the article previews
Making the images responsive
The call to action
Styling the form elements
Form fun from the future!
Styling the footer
Making the form responsive
Styling the header and the navigation
part 1.zip

Final Project | The blog page

Introducing the blog page
Blog Page Files
Starting work on the blog page
A solution and the secondary navigation
Flexbox vs Grid - and setting up the grid
Making the grid responsive
Styling the featured article
part 2.zip

Final Project | Finishing it up

Introduction to the final page
Individual article files
A look at the header
The main article
Article challenge #1 | files
Challenge #1 | Solution
A new challenge!
Article challenge #2 | files
Challenge #2 | Solution
The read next area
About adding in the links
Adding the links and a challenge
Containing block challenge | Files
A solution and styling it up
A quick look at performance
Getting the links to cover the entire article

You did it!

You made it to the end of the course! That's so exciting, and I really do hope that you enjoyed it and learned a lot from it.

And that's a wrap!
Could I ask you a favor?
part 3.zip
all-files.zip

Text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.