Asyouknow, I amElithecomputerguy, andintoday's clients, I'm gonnashowyou a littlebitonhowtousecolorswithCSSinordertomakeyourHTMLdocumentsandyourWebapplicationsjustjust a littlebitbetter.
JustisjustwebetterwriteesoIfyou'redealingwithold I t.
ApplicationoftheHTMLdocumentcanbe a littlebithardontheeyesagainifyou'reusingjustthebasic, boldcolorsthatmostpeopleareused.
ThiointheHTMLworld, you'reusingcolors, buttheycouldbe a bitharshontheeyes.
Oneofthenicethingsabout C.
S S is, ifyouuseCSSforyourcolors.
Youhave a wholerangeofoptionsincolorsthatyoucanuseforyourWebapplicationsin a femaledocumentstomaketheWebapplicationanddocument a loteasierontheeyesandbeabletodothingssuchasmatchingthecolorschemefortheorganizationthatyou'rebuildingtheHTMLdocumentorWebapplicationforagain.
Thisisoneofthosevaluablethingsas a consultant, asanemployee, whereyoucanhavesomethingthattechnicallyworks 100% correctly, andit's sohorribletolookatthesametime.
Nobodywantstouseitright.
Oneofthingsthatyoucandowithcolorsisifyoucancomeupwith a colorschemethatmatcheswhattheorganizationalreadyhasthat's goingtomakeeverybody a lothappier, right?
Soifyouifyouworkfor a company, thatcompanyalreadyhas a specifictypeofcolorschemewhenyoucreateyourapplicationoryourHTMLdocument.
Ifthatdocumentourapplicationmatchesthecolorschemethattheorganizationalreadyhas, it's justgoingtomakepeople a lothappier.
Andso, byusingCSScolors, thisis a wayyoucangoin.
Youcantweak a lotofthingswithCSStocreateanoverallcolorschemethat's gonnamaketheendusers a lothappier, eh?
Sotoday I'm goingtoshouldbeshowingyou a littlebitmoreabouthowtousecolorsandCSS.
Solet's goovertothedemonstrationcomputer, and I canshowyouhowthisworks.
Sohereweare, backatmydemonstrationmachineagain, I amusing a Macbook, so I usedtextatitinordertocreatethesetwodocuments.
Butallyouneedis a basicaskingtexteditor, Soifyou'reintheWindowsworld, youcanusenopadintheMacworld.
It's a littlebithardontheeyesthatmaynotfitinwiththecolorscheme.
Sowhatyoumightwantisagainsometoneddowncolors, someprettiercolors s.
Sothisiswherewesimplyusethathexcode s o thatcolor.
Sothiscolorishash F f a 94 d d.
That's whatthiscolorisandfortheRGB.
SothiscolorRGBthisis 25113 to 99 Andwhatyoucanseehereisthatthatjustgivesyoukindofnice, prettiercolors.
Now, whenyou'retryingtofigureoutwhatcolorsyoushoulduseandagainwhatyoushouldputineitherfor a namecolorfor a hexbeforeanRGB, thereare a lotoftoolsouttherethatavailableforyou.
Oneofthetools I telleverybodyaboutbecauseitis a goodtool.
A goodplacetogois W threeschoolsdotcom, so w threeschoolsdotcomisagain.
It's a greatreference, especiallyforbasicWebappdevelopment, andtheyhavesomedifferenttoolsforyouhere.
OneofthewaysthatthiscouldbevaluableisImagineifyouhave a picture, eh?
So I broughtthisuphereandsothisis a picturefromwhen I wasatWebsummit, basicallythesamepicturethat I alwaysused.
Solet's say I'm creatingHTMLdocumentand I wantthatdocumenttobeinthesamecolorschemeasthisparticularpicture.
Oneofthings I candoisyouseethislittleeyedropperuphereiswherethislittleeyedroppericonSoyoucanselectthateyedroppericonandyoucangothroughandyoucanlookforthecolorthatyouwant a Mac.
Right?
So, uh, sowe'regoingthroughhereand I don't know, Let's sayagain.
Let's saywiththeblue, I wanttomatchthecolorofmytitlestotheblue.
It's what I candois I canactuallyclickonthis.
Andnowthisgivesmethered, thegreenandtheblue.
Soif I gobacktomy C s s So I gobackthatstylesheep.
AndsoforthisRGBhere.
SotheRGBitforthiswouldbe 60 are 1 27 greenandtwotipsto 47 blue.
I canthendofile.
I coulddosave.
WecouldgobacktomyWebbrowserbegangobacktothehtmldocumentandthen I hitrefresh.
Sothisis a basicideaofhowyoucanusecolorsinCSSandwhyit's important.
Andthat's alsoanexampleofwhyyouneedtokeeptrackofallofyourwindowsonyourdesktopwhenyou'retryingtodo a screenshareagainis a littlebitmorecomplicateddoingtheseclassesthatyouthatyoumaythink, justtryingtokeeptrackofallofthesepicturesononelittlewindowandtheyhavetheflipbetweenthemall.
That's a bitmoreof a paininthebuttthanyoumayrealize.
S O a bigthingtobethinkingabout, though.
Again, ifyou're a standard I t professional, youknowyou'reyoumaybeoneofthosepeoplethatthinkcolorsdon't matter.
Justgivethemblue.
Justgivethemred.
I gavethesepeople a color.
Theyshouldbehappy.
Butagain, whenyou'redealingwithendusers, especiallywhenyou'redealingwithbossestakinganextrahourtocomeupwith a colorschemeforyourapplication, thatactuallyiseasy.
That's thetypeofthingthatwillgetyoucalledbackagainas a realprofessional, ifyou'reifyou'regoingtobeanentrepreneuras a realcontractor, asanentrepreneur, It's thetinylittlethings.
It's thatextra 1 to 2 hoursjusttomakeeverythinglook a littlebitnicer.
Sothefactofthematteristhepersonwhocreates a reallycrappybackendbutmakesthefrontendprettyversussomebodythatmakes a reallygoodbackendbutmakesitfrontandugly.
Thefrontend?
That's pretty.
They'retheonesthataregoingtogetcalledback.
That's howtherealworldactuallyoperates.
Soreallythinkaboutgoinginagain, justtweakingthecolorschemejust a littlebit, youknow, insteadofred, yougoinandfindsomething a littlebitmoresubtleormagentaorsomethinglikethat, right?
Doingthoselittlebitofimprovements.
Thoselittlebitoftweaksreallywelljustmeantheworldwhenyou'recreating a Webapplication.
Soasalways, I enjoydoingthisclassandwith 47 thenextone.
Ifyoulikethecontentthat I create, pleasethinkaboutgoingtoalignthecomputerguydotcomandbecoming a memberordonating.
Butifyouwanttowatchopinionvideos, orifyouwanttobeabletocomment, youdoneedtobecome a member.
Membershipis $5 a monthor $60 a yearandgivesyouaccesstothoseopinionvideosandtheabilitytocomment.
Ifyoudon't wanttobecome a member, youjustwanttogive a onetimedonation.
Thereisalso a donatebuttonwhereyoucandothat.
Pleaseunderstand.
Inordertoprovidetheeducationthat I am, itdoescostmoneyservers, costmoney, equipment, costs, money, travelcosts, money.
Allofthesethingscost a reasonableamountofmoneyandThefactofthematteris, isYouTube's advertisingprogramnolongersupportscreatorsthewaythatitusedto.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.