Sothiscouldbe a usefulwaytogive a littlebitof, ah, pizazztoyourwebsiteoryourHTMLdocument, orsimplymakeiteasierforyourvisitorsforyouruserstobeabletounderstandwhat's goingon, eh?
Sobasicallywhatwe'regoingtobedoingtodayiswe'regonnabeusing P tagsweregoingtobeusing T R tags, andthen I'm goingtobeshowingyouhowtodothiswithimages.
Andbasicallywhat's goingtohappenisifyouhighlightoverAPtag, itisgoingtohave a backgroundcolorofgrey.
Andsoifyouhavethatentirerowhighlighted, itmakesyourlife a loteasierthanwhenwegettoemithis.
Thisisjustsomethingthatyoucanusetogive a littlepizazz a littlepoptoyourHTMLdocument, andwhat I'm goingtobeshowingyoutodayis I'm goingtohave a singleimage.
Solet's sayyouhave a singleimageonyourHTMLdocument, andwhenyourolloverit, it's simplygoingtogetbigger, andit's goingtohave a borderaroundit.
Andthen I'm gonnashowyou, creating a verybasicimagegallery.
We'regonnahave a lotofimagesin a row.
Andthenagain, whenyourolloveroneoftheimagesinthatgallery, itwillgetlarger s sothatyoucanlookatit a littlebitbetter.
Andsothisisreallycool.
YoudonotneedJavascript.
Dothis.
ThisisbasiceightemailandbasicCSS.
Allthisisdoingisyou'rewithCSS.
You'resayingwhenyouhoveroversometagsomeelementwithinyourHTMLdocument, youwanttheCSSstylingtobemodifiedandtoshowupin a differentway, andthatwillactuallygiveyou a bitof a dynamicwebsitesothatlet's gooverthecomputerand I canshowyouhowthisworks.
I figureprobablybebestif I showyouthedemonstrations.
SoyouunderstandwhattheCSSisdoing?
What?
I'm explainingit.
Andsohere I have a demonstrationofdifferentexamplesofwhatcanbedonewhenyouhoveroveranelementor a tagintheHTMLwithCSSesouphere, I havesome P tagssoappearthe 1st 3 things I haveRPtags.
Andwhenthese P tags, whatyou'llnoticeisif I hoveroveratthe P tags, thebackgroundcolorgoestograve.
Soagain, thinkaboutthisfrom a userexperienceperspective.
Thenpassedthat I didhavetodefinewhatthedefaultCSSshouldbeforthe I.
M.
V andforthegalleryclass.
Sowhat I havehereis a normalimageof I usetheimagetagand a femaleonwiththedisplaytobe a block.
Themarginlefttobeauto, themarketrighttobeauto.
SowhatthisisgoingtodoisthisisgoingtocentertheimagetheimageisgoingtobeinthecenteroftheWebbrowser, andthen I simplywantthewidthtobe 150 pixelsandtheheighttobeaudit.
Right?
SothisisgoingtocentertheimageinthemiddleoftheWebbrowserwith a with a 150 pixels.
When I hoverovertheimage, itwillthenmodifythewettobe 300 pixelstogetheighttobeautothatisgoingtogivetheborderthatis 10 pixelsofsolidgray.
Thenwhat I'vedoneforthegalleryclass.
So I'vecreated a galleryclassperiodgallery.
Sothisisgoingtobe a displayinlineblock.
Sowhen I showedyoubasicallythatimagegallerysofortheimagestobebasicallybein a linelooklikethatyouusedisplayinlineblock, I thendidthewidthof 100 and 50 pixels, heighttobeautoandthenforthisforthestandardclassofgallery.
I actuallygave a 10 pixel, a solidwhiteborder s.
Sowhenyoutake a lookattheexample, that's whatseehow, seehowthere's thatnicelittlegapbetweenalloftheimagesanddefault.
That's whatdoesthat I basicallygiveit.
Gaveeachimage a 10 pixelwhiteborder.
It's spaces, theimagesout a littlebit.
Andthenwhen I hoverovertheimage, I guesshegives a littlespace.
Sowedon't haveanyspecialcodingintheHTMLdocumentsorusingbasic P tags.
SincewedefineusintheCSS, allwehavetodoisbasicPitaknotevenuse a class.
And I putthosedifferentparagraphsinthereandthencreatedtableagain.
You'llnoticehere, since I usedthe T R elementtheTRtagwithinCSS, I don't havetoput a classoranythingelseinheresimply, wheneveritseestheTR, itwillputthatformattingonit.
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 reasonableamountofmoney, andthefactofthematteris, isYouTube's advertisingprogramnolongersupportscreatorsthewaythatitusedto.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.