2022.2

Table Of Contents
acrossmanybrowsersanddevices,andworksbackasfarasIE9andAndroid2.Seehttp://-
foundation.zurb.com/learn/about.html.
CaptureOnTheGoandJumbotrontemplatewizardsautomaticallyaddtheFoundationfilesv.5.5.1to
theresourcesofthetemplate.InafutureversionofPlanetPressConnect,Foundation6willbe
included.Ifyou'dratherstartusingthenewestFoundationfilesrightaway,youhavetwooptions:
l
DownloadtheFoundationfiles(fromhttp://foundation.zurb.com/sites/download.html/)andadd
themtothetemplatemanually.
l
UseremoteFoundationfilesfromaCDN,suchashttps://cdnjs.com/(searchforFoundation).
See"UsingJavaScript"onpage512and"AddingCSSfiles"onpage674forfurtherinstructions.
OncetheFoundationfileshavebeenaddedtoatemplate,youcanusetheGrid,aswellasmanyother
Foundationcomponents,inyourtemplate.
Tip: TakealookintheSnippetsfolderontheResourcespane.Aftercreatingatemplatewitha
CaptureOnTheGoorJumbotrontemplatewizard,thisfoldercontainsanumberofready-made
elementsthatmakeuseofFoundation.
TheGrid
UsetheGridtoensuretheresponsivenessofaform.UsingtheGridessentiallymeansbuildingaform
orwebpagewithDivelements(aDivisacontainerelement,see"Div"onpage625)thathavethefol-
lowingclasses:
l
row:ThisclassidentifiesaDivasahorizontalblock(arow)thatcancontainupto12columns.
l
columns:ThisclassshouldbeusedforaDivinsideaDivwiththeclassrow.ItidentifiesaDivas
partofarowDiv.
l
small-n,medium-n,large-n:TheseclassesindicatethenumberofcolumnsthatthisDivoccu-
pieswithinintherow,onasmall,mediumorlargescreen,respectively.Replacenwithanum-
ber,forexample:small-2,large-4.Ifthenumbersdeclaredinone'row'foronescreensize,added
together,exceedthemaximumof12,theydon'tfitinonerowonthatscreensize.Inthatcasethe
Divelementswillappearbeloweachotherinsteadofnexttoeachother.
Theseclassescanbecombined,sothatdependingonthescreensize,aDivcantakemoreor
lessspaceinarow.Separatetheclassnameswithaspace.
Tip: Startwiththeclassforsmallscreens.Forexample:<divclass="small-3large-6"columns>.
Largerdeviceswillinheritthosestyles(thankstothemobile-firstapproachofFoundation'sstyle
sheet).Customizeforlargerscreensasnecessary.
Thisverysimplelayouthasonlyonerow:
Page 529