Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS Grids

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

CSS Grids

Basic Introduction into CSS Grids

Avatar for Klaus

Klaus

June 26, 2018

Other Decks in Programming

Transcript

  1. Content → What? → Why me? → Why YOU should

    care? → Flexbox vs. Grid → Demo
  2. What? → CSS properties for a grid layout → No

    JS → Don’t touch the markup!
  3. Grid systems in graphic design / Rastersysteme für die visuelle

    Gestaltung. Josef Müller-Brockmann Teufen 1981.
  4. Why YOU should care? → Responsive landscape grows → We

    need appropriate tools to "respond" → Standardized technique → No libraries / dependencies → Combine with Flexbox
  5. Flexbox Grid → single-axis oriented → focus: space-distribution along 1

    axis → two-dimensional oriented → dramatic transformations without markup changes
  6. Flexbox Grid → single-axis oriented → focus: space-distribution along 1

    axis → bottom-up → two-dimensional oriented → dramatic transformations without markup changes → top-down
  7. Flexbox Grid → single-axis oriented → focus: space-distribution along 1

    axis → bottom-up: content-size based approach → two-dimensional oriented → dramatic transformations without markup changes → top-down: overlapping / spanning
  8. Demo → Basic Grid → Holy Grail Layout → Explicit

    vs. implicit grid → "Grid Toolkit" used for gridsystems https://codepen.io/klausinger/pen/WyyqmL?editors=1100 https://codepen.io/klausinger/pen/ZRjZJG?editors=1100#0
  9. Wait! There’s more! → Implicit / Explicit Grid → Overlapping

    content (Posters) → Layering with z-index