Wecanalsodothesamethingfor a rosesowecoulddo a gridtemplateroseinsteadofcombs.
I mustsay, wewannahave a 200 pixeltallwroteforourfirstroad, andwewantoursecondrealtobe 100 and 50 pixels.
Talkifyousaythatwenowhave a 200 pixelroleforourfirstroomon 150 for a second, butifyoudon't knowhowlargeyourgreatisgoingtobe, soyoudon't knowhowmanyrose, it'llbe.
Butit's notsomethingthat I useveryoftenwhen I'm creatinggridsbecause I prefertostylemyelementsusinggridcolumnandgreatrowontheelementswhichwecantalkaboutnow.
SooursecondlineisrighthereinbetweengreatAdamtwoandthreeandthencallhimthreeisactuallythelineofveryendofourpagebecauseeachcolumnthatwehaveeachsectionhas a startandanend.
Soifwewantedthistospantwocolumns, andwecouldjustsayspantohaveyousaythatitwillnowtakeuptwocolumnwithsomethingdownherewithmygridrose, wecouldchangethistobespantwo, and I wouldjusttakeuptoRoseandsamethingdownhere.
ThisworksverysimilarlytohaveFlexboxworksforaligningitemsusing a line.
Itemsjustifyitems.
Soinourcase, there's twotypes.
Wehavetheitemsandthecontentversionof a lineandjustifysothere's a lineitemsandjustifyitems, whichishowwelayoutthedifferentgreatitemsinsideofourcontainer.
Andthenthere's justifycontentand a winecontent, whichishowwelayoutouractualgreatcontainerinsideofthecontainerthatthat's insideof.
Andifwewantedtoalignourgridinsideofourscreen, wecoulduse a Y contentandwecansaycenter, forexample, andwealsoneedtogrowourgreat a hypesoitcanalignitselfinsideofthat.
Well, yousaythatshouldbe 100.
You, Heizo, takeup a fullscreenandyouknow, seethatourgridiscenteredverticallyandit's rightlinedforthehorizontal.
Solet's saywewanttotakeourfirstgreat I amgooditemone.
Wewantedthisonetobealignedatthetopoftheroad.
Wecouldjustsay a winesilkstartifwesaythatyounotseethatthisis a windatthetopoftheroadandeverythingelseis a linestretchwecouldalsooverrun, justifysowecouldsay, justifyselfandwewantedtobeinthecenterandeverywhereyouknow, seethatit's aligneditselfinthecentrehorizontally, andthat's howwecanoverrideanyofthedifferentjustifypropertiesorthelinepropertiesontheindividualgooditemsandsetthemonourcontainerusingjustifyitemsonthelineitems.
Thiswholelining, injustifyingofcontainersanditems, worksalmostexactlythesameas a dozenfluxbox.
It's verysimilartohowflexboxworks, butitallowsyou a lotmoreinthewayoflayingoutofyourelementduetoitbeing a to D nature, asopposedto a onedimensionalnature.
FoxboxIngridweredesignedsothattheywouldworkamazinglytogether, andusingFoxbarkscontainersinsideofyourdifferentgriditemsisoneofthebestwaystolayout a site, inmyopinionandluckily, supportforgritandfluxBoxisnearingalmostperfectinallmodernbrowsers, soyoucanusethisonmodernsitesandnothavetoworrytoomuchaboutsupportingolderbrowsersunlessyou'retryingtofocusonInternetExplorer 11 forexample, whichdoesnotsupportgratefully, I knowthiswas a reallyquickoverviewofeverythingthatyoucoulddoingrid.