# But first, some more dev tools
# VS Code
Live Server Extension for hot reloading 🔥
- No more manual refreshing!
Launch VS Code from the command line by typing
code .in terminal.- No more drag and drop!
# Codepen
CodePen is a great tool for rapid coding when an idea hits you
Using CodePen in Class
You may use CodePen for your in-class exercises but I need to be able to find them. Please add a link to your CodePen (make sure it works) in a
markdown.mdfile in yourLabsub-folder of your course repository. CodePen is NOT allowed for homework assignments unless otherwise noted
# Layout and Positioning
# Advanced Positioning
Activity! Mondrian
Create a Mondrian without flexbox or grid. Only use position and/ortransform in CSS.
Here's the link to Andrew's completed in-class Mondrian with position: absolute on the boxes
# Layout in CSS
There are plenty of ways to create a layout in CSS, from hacky old-school float to modern css grid. We are going to familiarize ourselves with the modern approaches like display: flex and display: grid as these are the most powerful techniques to building a beautiful site.
# Flexbox
Review Homework
How did everyone enjoy Flexbox Froggy? Let's do a few examples!
# CSS Grid
Activity! CSS Grid
By the same makers of Flexbox Froggy, comes Grid Garden. Let's work through of few of these as a class to understand CSS Grid. It is more complex, but much more powerful, than Flexbox.
Activity!
Let's rebuild our Mondrian with Grid. Andrew to present completed version but take some time playing around with it on codepen to really understand how it's working.
Here's the link to Andrew's completed in-class Mondrian using display: grid
# Some good CSS Grid Resources
- Amazing CSS Grid resource for reference (not required) is Wes Bos' Grid Tutorial
- Sarah Drasner Grid Generator Tool
- Grid Garden game