Andjustincaseyoudon't knowmenormallyconfinedmeoveronmyownYouTubechannelwhere I talkedmostlyaboutCSSwithweeklytips, tricksandtutorials.
I amsoextremelyexcitedtobehereonfreecodecampsChanneltobringyouthistutorialorwe'regoingtobelookingathowtobuildoutthispage.
Now, thispagehas a lotoffunthingstobuildout, andwe'regonnahave a lotoffunwithit, becauseforme, I'm a CSSevangelist.
I loveCSS, andoneofmybiggoalswiththisnotonlyistobuilduptheschoolpagewithyou, but I alsohopingtonotonlyshowyousomeofthecoolthingsyoudo a CSS.
We'regonnacallPaige.
We'regoingtoseesomecoolCSSstuff.
But I'm alsoCSSgets a badrapin a biggoalofmineistoo.
I hopeyouseethelight a littlebit.
I'm a bigfanofit.
I'm hopingmyenthusiasmcomesthroughandwearsoffonyou a littlebitandhelpsyoufallinlovewithCSSandseethat?
Maybeit's notasbadasyoumighthavethoughtitwas.
Ifyou'reoneoftheyouknow, ifyouget a littlefrustratedbyiteverynowandthenwe'regonnabebuildingthisoutwithjustsomeplainoldHTMLandCSSand a littlebitofJavaScript.
Soifyou'reifyou'recomingfromlikereactorofyouandyou'relookingfor a portfolio, youcouldtakeeverythingyou'relearninginthisandapplyittomakingsomethinglikethat.
Ormaybeyouwanttojustupthegame a littlebitwith a staticsitegenerator.
Sowhatwe'regoingtobedoinginthisisjustsettingtheverybasicsofitup, andonepartofthatjustreallyquicklyis I havesuppliedalloftheimageshereintheImagesfolder, sothosearetheones I willbeusing.
OneoftheMrDownload, theZip, andwhenyoudownloadthat, itwillgiveyoualloftheimages, alongwithanycodethat I haveonthescreenwhenyouhitthatdownloadzip.
Soifyoudowanttodownloaditlateron, when I havesomeworkthantocomparetowhatyou'vedone, youcanalsodothatifyourunintoanyissuesorsomethinglikethat, ifyouarecoatingitonyourown.
Ifyoudonotincludethisandyouopenyourwebsiteon a phoneor a tabletoranyothermobiledevice, itwillbelikethedesktopsitezoomedoutonyourphone, whichwilljustlookterrible.
Andjustas a reminder, youcanaccesseverythingyouneedforthisbyclickingthelinkthatisonthescreenrightnowthatwillbringyoutotheadobe X d sortoflinkfilethingthat I have.
Lastbutnotleast, inherheader, we'regonnahaveourknaveitselfand I givethis a classofNavin, Youmightsaythat's a littleredundant, anditkindofis.
Butit's theway I liketowork, sowe'regoingtostickwithit.
Ifyoudon't wanttohaveit, youdon't needit.
Butwhen I'm writingmyCSSforthemostpart, I liketobeselectingclassesandjustsinglecostsis I'm gonnamake a coupleofexceptionsinherefor, say, thelogo, maybe, and a fewotherthings.
Yetyou'regonnaseethat I dolikeputtingmyclassesoneverything.
And I'm gonnabeusing a systemcalledthemaswell.
Andsowehavedoubleunderscorelist, and I realizedthatmightdrivesomepeople a littlebitcrazyhavingthedoubleunderscorethere.
Thereason I'm doing a doubleunderscoreiswiththeBenSystem.
Thisissayingthatmythislistis a a subcomponentofmynavigationhere.
We'realsoneverhaveitemsarenotlinks.
Everythingisgonnahave a class, andit's gonnaitjustmakesit a littlebiteasierwhenyou'rereadingtheCSSlater.
Youknow, ifsomethingbelongsaspartofsomethingbiggerorisit a modificationofsomethingyou'regonnasee.
We'regonnahave a fewexamplesofthatthroughoutthisproject, andit's maybe a littlebitlongertodo a doubleunderscore.
We'regonnahavetimeswherethere's a doublehyphen, butitis a choicethat I'm makingveryspecificallybecause a I I dothinkthemis a likethemthat I alsothinkit's gonnamakeiteasyifyouwanttogointotheCSSlatertomodifyittoquicklybeabletoidentifywhatyouwanttochangeandtobeabletochangeitveryfast.
Um, soinherewe'regonnahaveourallies.
SoAllyclasswillbehaveitem, andthenintherewecanhaveourlinks a natureifwe'regonnasettheseallupafter.
So I'm justgonnaleaveitas a hashtagforthemomentandthat 1st 1 canbeourhomesection, and I'm justgonnacopythispastepastefacedjustlikebaton.
I onlyuse I d s foranchorslikethis, orsometimesforJavaScriptfunctionalityandsomeotherstuff.
But I usedmyclassesforstylinguseideasforanchoringbecausethat's sortofwhatthey'regoodfor.
Andclothessectioninthissection, wehave a coupleofthingsweregoingovereachone.
Ah, I willgivethis a class.
Andremember, I toldyoueverythingisgonnahave a classonit.
Soitisgonnahave a classofsectiontitlebecauseitis a titleofmysection.
But I'm alsogonnabemodifyingthat a littlebit.
Sowe'realsogoingtocallitmysectiontitleintro, and I realizedagain, that's a littlebitlong.
Peoplemaynotlikewritingallofthis, andthemis a choicethat I ammaking.
Butinthiscase, I dothinkis a worthwhilecasebecauseitmakesitreallyobviouswhat's goingon.
Sothedoublehyphenhereissayingthatit's a modifierclass.
Soit's gonnamodifythissectiontitle, um, tobe a littlebitdifferentfromthedefaultsectiontitlebecausetherearesomechangesthatwedoneedtomaketothat.
Soinmysectiontitleintrowedohave a bitoftextinhere, Somostofit I'm gonnacopyandpaste.
Butfornow, I'm justgonnawriteHi, I ambecauseherewedoneedourstrongtagas a shortbitoftextJaneSmithandclose, StrongandWeakenOops.
There's myclothesofmyageonethereAndthenwecancomeinwith a paragraphClassisequaltosectionsubtitleand I'm gonnado a sectionsubtitleintrobecauseit's goingtoneedsomemodificationsontheirmeans.
A FrontandDevCloseparagraphAndlastbutnotleast, wedoneedthepicture.
Sowehaveanimage.
TheimageisourimagefolderandthenameofitisdeafJane 01 Sothevjane 01 dot j p g.
Again.
Youcanfeelfreetoreplacethesewithyourownpictures, a differentdimensionsonthesepicturesshouldwork.
Soit's comedownanddothenextonehere, whichwillbemyserviceis I likehavingjust a commentsatthetopofthings.
Orsometimesifwehavelotsofclothesdibs, I mightputsomecommentstosaywhatthoseareactuallyclosing.
Notthatit's hardtonavigate, butitjustgivesyou a littlevisualcluewhenyou'rescrollingthrough a wholebunchofstuffwhere a newsectionofcontentisstarting.
EsoherewecoulddomysectionclassequalsMyservice's couldjustbeService's, I guess, andwe'lldothatforthe I.
D.
Service's comebackupintomy, uh, linksormymylinksherefrom a navigationandaddserviceisthere.
Sothisisgoingtolinkwiththe I D downhereandwecanclosethatsectionoffandinsidethatsection, let's justgoquick, take a quicklookatwhatwewantSowehave a titlewith a littleunderscoreonit.
Sothat's gonnabeanotherlittlemodifier.
Classiciswe'rejustgoingtodothatis a pseudoelementonthetitle, andthenweneedthreecolumnsand a buttondownatthebottom.
Wecanhavean H twoclassisequaltosectiontitle, andthatwillbe a section.
Titleserviceiswhat I docloseeachtoo.
Andsothat's seemingthetitle.
Theandwecancontrolthecoloroftheunderlyingwith a pseudolimitallonthereandthenweneedtohavethreecolumns.
Soforthethreecolumnshere, I'm gonnado a div.
Classofserviceissothat's goingtohelpuscreate.
Thethreedibsarethethreecolumnsthatweneed.
Andinsideeachoneofthose, I willhave a diffclasscalledService.
Soit's myindividualservice.
Wecanclosethat, Devandinsideeachoneofthosewillhavean H threeclosed h threeandeachonewillalsohave a paragraph.
I'm gonnaput a commenthere, closecloseservicebecausewewillhave a wholebunchofdibsandtheinventingonthatis a littleoff.
Glasswillbe a votemeandwecouldgiveitthe I D isequaltoabout I amCanadian.
So a bootbootme.
Uh, let's mightaswellcomeuprightnowand a linkthataboutand I thinkthisonewilljustcallitwork.
Sowe'llputthatinrightaway.
That's whatwealreadyhadthatsetupforourlinkthere.
Sothatisgoodclothessection.
Andinsidethissection, whatdowehave?
Wehaveanothertitle.
So h two, we'regoingtoseethis a lotclassesequaltosectiontitleandthensectiontitleaboutthisoneiswho I amcloseeachtoWewillthrowourparagraphonherefor a subtitleSoclassisequaltosectionSubtitleandsectionSubtitleaboutcloseitcloseparagraphSomepeoplelikeusingheadingsassubtitles, butingeneralit's kindoffrownedupon a heading, sortofthenextlevelofcontent.
Soyouhaveyouragetothanifyouhad, like a subsectiontoyour h twoandyet a several h three's thatwouldmakesense a littlebitlikeherewehaveourwhat I doisthesectionandthenwehavesubsections.
I'm gonnaleaveblankfornow, butthatcouldbesomethingyoufillinonyourownifyouwanttoput a littledescriptionofwhattheprojectisandtheclassoneachoneofthesewillbeportfoliodoubleunderscore.
I am G becauseit's theportfolioimageCourtFolioportfolioAdam 01 I'm gonnaspeedthisupas I doitbecause I think a littlecommentoneachoneofthesewillmakeiteasierwhenyou'resettingeverythingup.
Allright, sothatisdone.
Let's hitsafe.
Because I haven't savedyet.
Andlet's see, hopefullyeverythingisactuallyshowinguponhere, soitlookslikeeverythingisthere.
Wedidn't getanyerrors.
Myimagesareallloadingin, sowe'reoffto a goodstartonallofthat.
Um, so I'm notcallingitlikefootersociallistorsomethinglikethat, butitcouldbeifyouwanteditto, um, we'llhaveanallywithan A init.
Close.
Payclose.
L I Thelistitemitselfwillhave a class.
Youguesseditofsocialsociallistitem A lotlikeournavigationclassisequaltosociallist.
Linc, um, thisis a placewhereyoucouldhaveanotherclassonthis, alsooflikeonstyledlistthatyoucoulduseforbothofthemandjustremove, youknow, becausebothofthem, there's a lotofsimilaritiesbetweenthetwolists, andthenontopofthat, they'llhavesomemodificationstoit.
Soifyouwantedtotakethatapproachtoitinsteadoftheway I'm doingithere, thatwouldbeperfectlyacceptableandresultin a littlebitdriercodeinthelongrun, so I'd beallforthat.
Ifyouwanttoget a differentfontinformationthatwaitsthecolors, sizesallofthatjustthecolorsingeneralthat I usedinthisYoucanclickhereonceagaintogettothatadobe X D link.
BeforeweactuallystartwritinganyCSS, I'm goingtodoonemorethingwhere I'm gonnacomeinhereandput a linktotheGooglefundsthat I usedinmydocumentorinmydesign, esoupdatethesewithyourownfontsifyoudo.
Youmightwanttochangethesecolorsaroundforyourowndesignand a coloraccent, whichismy 16 e zero b g, whichisthemaingreenishcolorthat I usedthroughoutthiswholesite.
Amaryllis, Epsomfontsizes, I'm gonnasay a fontsizeofeachoneofthreeram.
I alwayssetmyfontsizesinrimsfontsizeeachto 2.25 rimfontSize H threewillbeonepointwhenthat's right.
Oneof 25 room.
Theseareallthings I calculatedalready.
Basedonmymarkupandjustplayingaround a littlebitwithit, we'llstickwithoneroomonmybody.
Soifyouneededtochangeanything, youcanjustinvertthatallthis, thenyou'd have a darkcolorschemewhichwe'regoingtosortofbeusingwhenwegetdowntothat, atleasttochangethefontcolors.
We'regoingtohaveourfontsizeofourfontsizebody, andnowyoucansortofseewherethat f s or F w andallofthatthat I usedalongthewayWhy I didit.
I'm gonnalineheight.
I use a 1.6 assortof a defaultlineheightthat I liketouseoneverything.
Umsohitsaveandwecomeback.
Weshouldsee a lotofthosethingscomingin.
Thefontsareworkingand a fewotherthingsweregettingthere.
We'realmostdonewiththegeneralsetup.
Anothergeneralthingthat I liketodoisjustsettingmyimageistohave a display, a blockwhichgetsridofsomeissuesthatsometimescomeupwithimagesandalsosetting a maxwhipof 100% onthemjustsotheydon't growbiggerandoverflowwithsideoftheirparents.
Just a word I havewaytoomuchtroublepronouncing, sometimesnotprancingbutspellingforsomething I read a lot, sowenever h one h twoand h threeareallgonnahave a lionhightlineHeightofgonnatry 1.1 andadjustfromthere.
Butbecausethey'regonnabe a biggerfontsizesingeneral, iftheybreakontwolines, theydefinitelyneedthissmallerline.
Hideonthemand I'm gonnaput a marginofzero.
Fornow, thatmighthavetogetrevisited, butingeneral, theheadingsyouwanttogetridofthemarginsandmaybekeep a bitof a merchanttop, maybe a smallmarginbottom, Butwe'rejustgonnado a bitof a resetonthereandthen I'm h oneontheset, a fontsizeofAreyougoingtodoourfunsize?
But I'm goingtoactuallytakemythisandsaythatthestrongtagthat's nestedinthereisdisplayblock.
JustsotheJaneSmithalwaysendsuponitsownlineinsteadofsometimesbeingon a differentlinelikethat.
So, um, I'm not a bigfanofusingcompoundselectors, buteverynowandthen, onceyouknowtherules, you'reallowedtobreakthemsometimes.
Sothisisoneofthosetimeswhere I thinkitisperfectlyfinetogointhereandbreakit.
Thefontsizeonthisdoeslook a littlebitsmallerthanwhattheoriginaldesigncalledfor, so I mightplaywiththat.
Butwe'llplayaroundwiththeoveralllook.
Andifwestillfindthatit's toosmall, um, maybewecouldevenchangebothofthemtobethe H twosidesinstead, anditwillseewillcomebacktothatoncethedesignisstartingtocometogether a littlebit.
Now, I knowyoumightbewonderingwhywe'renotdoingthenavigationfirst, but I'm gonnacomebacktothenavigationattheendandsetthatwholethingupbecausewe'regonnagetinto a littlebitofjavascriptandstufftogetthatworking.
So I'd ratherjuststicktoCSSfornow, Finisheverythingelse.