Crash Course in CSS Grid plus FlexBox - Nolan Erck

ortussolutions 34 views 21 slides Sep 04, 2024
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation

CSS Grid and Flexbox are powerful CSS tools that simplify layout design without relying on frameworks like Bootstrap. These native browser features offer responsive layouts with less code bloat. Developers with HTML and CSS knowledge can create efficient, customizable grid-style layouts using these ...


Slide Content

Nolan Erck
Crash Course in Flexbox
& CSS Grid
Rad CSS Layout Stuff You Can Do!

About Me
•He / Him / His
•Owner @ South of Shasta,

VP of Engineering @ e-Mission Control
•Organizer @ Sac Interactive Tech Meetup
(formerly Sacramento CFUG)
•Recovering Video Game Developer (Grim
Fandango, SimPark, Star Wars Phantom
Menace, etc)
•Music Junkie

What are Flexbox and CSS Grid?
•CSS language enhancements
•Solve common layout problems
•Alignment, height, grid systems
•CSS things that used to be more challenging
•Not a ColdBox add-on. ;)

What are Flexbox and CSS Grid?
•Not an add-on.
•Built into the browsers already.
•Does not require Bootstrap, Tailwind, CommandBox, npm, etc.
•It “just works”.

Flexbox Compatibility

CSS Grid Compatibility

Let’s Get Started!

Floats
1-floats.html

Positioning
2-positioning.html

Flexbox
3-flexbox.html

Centering
4-centering.html

CSS Grid

CSS Grid
•Flexbox = moving content in 1 direction
•Items in a container
•CSS Grid = moving content in 2 directions
•Rows, columns, space (gutter)
•Similar-ish to Bootstrap grid system idea (col-xs-12, col-md-4, etc)
•Like <table> hacks but done correctly
•A11y compliant, won’t get you sued

CSS Grid Columns and Gaps
Source: w3schools.com
•Grid broken up by “lines”.
•Can be a tricky concept at first.
•Number the spaces between the
rows and columns, not the
columns themselves.
•Takes some planning to lay out
your pages.

Grid Inspector
Source: smashingmagazine.com

For More Info
•Scott McCallister’s video on YouTube
•on the South of Shasta YouTube channel
•Ben Nadel’s recent blog(s)
•Fun Fact: Works for PDF generation w/ the latest ACF, released this week!
(Probably Lucee too, I just haven’t tried it yet to confirm.)
•A zillion other YouTube videos and tutorials, all explain it a little differently from
each other. Which is a good thing.

Learning in 30 Minutes a Day

Any questions?
•You can find me here:
•southofshsata.com
•Twitter @southofshasta, @nolanerck
[email protected]

THANK YOU
Thanks to our sponsors