Ormaybeyoucantoneitdown a littlebit, basically, justtoshowthatthisistheimagethatthepersonishoveringoversothattheyknowwhatthey'redoingwhentheyclickedontheimagesothattheseweresomeofthethingsyoucouldbethinkingaboutwiththecapacitysettingwithCSS.
Sowiththat, let's gotothecomputerand I canshowyouhowcapacityworksinCSSonyourHTMLdocuments.
Sohereweare, backinmydemonstrationmachineagain, I'm using a Macbook, so I usedtextitinordertowritethiscode.
Thestylesheetagainwe'reusingisopacitystyledot C S s.
Soyoueitherputinthenameforthestylesheethereifit's inthesamefolderasHTMLdocument, ifit's in a differentolderthanyouwouldputinthefullfilepathtothestylesheeppen, it's thatyou'regonnaclosethehead, you'regonnaopenthebodyandthenbasically, all I'vedonehereis I havefour.
I am G tagstotheEmmett.
So I'm reusingthatpicture 700 j pegthat I usedforalmostalloftheseexamplesthefirsttimethat I referencedthatimage.
Plus, I'm goingtohave a classofopacity +08 thennext, I'm gonnahave a capacityof +05 that I'm gonnahave a capacityofzeroto.
Sotheseairclassesthat I createdwithinthestylesheetandwe'lltake a lookatthatin a secondthat I haven't h onehere.
Theclassistextopacity.
Sobasically, I justmodifiedtheclasstextopacity, thengetsthisgivesyou a bitofseathroughtext, thenpassedthatwe'regoingtogodown, andbasically, I'm goingtocreatethatimageoverlandlike I didinourpreviousexample.
Esoforhere.
I have a divof a classoftextoverlay.
Soessentially I'm creating a canvassothat I canoverlaythetechso I canaddanimage, anoverlay, thetextthat I'm goingtoaddtheimage.
SoimageSRCagain, thatsamepicture 700 likeyounormallyuseandthenonehaven't H twowith a classofoverlayhyphentitle.
So I'm gonnagotake a lookattheclassofoverlaytitlepositionhereisgoingtobeabsolutebecausepositionbasically, withthiswehavetosaywherewe'regoingtostartwriting a text.
We'regoingtostartrightin a textfromzeropixelsfromthetopand 16 pixelsfromtheleftbasicallyforthedefaultforwhatevertagwe'reusingfor H onethemecolorisgoingbeblack.
ThebackgroundcolorisgoingtobelikeRay.
Butherewhatwediddifferentthantheexamplethat I showedyoubeforewithoverlayingTaxisnowwe'regoingtohaveanopacityof 0.7 byhavingthecapacityofthe 0.7 whenwegoandwetake a lookupwhenwegoin, wetake a lookatthetext.
Wecanseethatit's now a littlebitseethroughagain.
It's notsojarring.
Uh, if I g o andlet's say I tookawaythatopacity.
Solet's saywe d'oh!
Andinsteadofhavingthecapacityof 0.7, I simplygotridoftheopacity I file.
I savewhenwegoback, right?
That's howthetextbooksnow, when I refreshnow, youcanseeit's kindofbold, brightrightinyourface.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.