GD with GDDEMOLAND BookType + Code Chapter 2 of 2Fun with CSS
All chapters
Chapter 2

Fun with CSS

Select a demo

2.1EXERCISE: Short story 2.2Short story example (for fun) 2.3Box model 2.4Margin collapse 2.5Box sizing 2.6Block vs. inline elements 2.7Absolute positioning 2.8EXERCISE: Drawing with CSS 2.9Variable fonts 2.10Hover and active states 2.11Keyframed animations 2.12Media queries 2.13EXERCISE: Buttons 2.14EXERCISE: Animations
All Books
What Is DEMOLAND?
Tutorial
Coding Cheatsheet
Start a new file
More from GD with GD
Current bookType + Code
All books
CourseType + Code
Websites are full of text, a.k.a. “type.” This type is special because it’s made out of code! In this course, you’ll discover how to bring type to life using code.
Chapter 1
Introduction to HTML and CSS
Let’s make websites!
1.1HTML1.2HTML Elements1.3Block vs. Inline Elements1.4HTML Typesetting1.5EXERCISE: HTML Elements1.6CSS1.7Styling Text1.8Inline CSS1.9Classes1.10Inheritence1.11EXERCISE: Computational Poetry1.12Links1.13Multiple Pages1.14Images1.15Custom Fonts1.16EXERCISE: Choose Your Own Adventure
Chapter 2
Fun with CSS
2.1EXERCISE: Short story2.2Short story example (for fun)2.3Box model2.4Margin collapse2.5Box sizing2.6Block vs. inline elements2.7Absolute positioning2.8EXERCISE: Drawing with CSS2.9Variable fonts2.10Hover and active states2.11Keyframed animations2.12Media queries2.13EXERCISE: Buttons2.14EXERCISE: Animations