JonL9 / wk2-d3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wk2-d3

quick review of last night

  • flex
  • parent/child selectors
  • text decoration
  • fonts
  • overflows
  • grid layout

learning objectives for tonight

  • flexbox (not quite the same as flex)
  • flex-wrap
  • flex-direction
  • flex-flow
  • justify-content
  • align-content and align-items
  • box-shadow

flexbox

Wait a second, i thought we did this last night? We discussed what flex means as a property, tonight we discuss the execution of the property in nice, clean layouts

  • Keep in mind, flex is how the element reacts to changes, flexbox is a way of sorting items on the page in predictable ways

flex-wrap

  • can have 1 of three primary values (the others are just variants of these)
    • wrap, nowrap, wrap-reverse
      wrap is good for mobile sites, keeps things compact on smaller screens nowrap is good for desktop sites that have the flexbox implemented, but you want certain items to stay put wrap-reverse is for being cheeky, but it is good to know how it works

flex-direction

  • you get to determine how the box flows on your page
  • 4 primary values: column, row, column-reverse, row-reverse

flex-flow

flex-flow combines the values of flex-wrap and flex-direction

justify and align content & align items

i'll walk you through a few examples of this

box-shadow

box-shadow: takes 4 values, only 3 are necessary [horizontal] [vertical] [blur-radius] [color]

  • works with any size value, but keep them small
  • works best with em values between 0.1 and 0.9
  • color can be designated by name, rgba(), or hexidecimal

flexbox froggy

About


Languages

Language:HTML 51.5%Language:CSS 48.5%