CSSMasteryAdvancedWebStandardsSolutionsSecondEditionAndyBudd,SimonCollison,andCameronMollCSSMastery:AdvancedWebStandardsSolutions,SecondEditionCopyright2009byAndyBudd,SimonCollison,andCameronMollAllrightsreserved.
Nopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisher.
Trademarkednamesmayappearinthisbook.
Ratherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weusethenamesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademark.
DistributedtothebooktradeworldwidebySpringer-VerlagNewYork,Inc.
,233SpringStreet,6thFloor,NewYork,NY10013.
Phone1-800-SPRINGER,fax201-348-4505,e-mailorders-ny@springer-sbm.
com,orvisitwww.
springeronline.
com.
Forinformationontranslations,pleasee-mailinfo@apress.
comorvisitwww.
apress.
com.
ApressandfriendsofEDbooksmaybepurchasedinbulkforacademic,corporate,orpromotionaluse.
eBookversionsandlicensesarealsoavailableformosttitles.
Formoreinformation,referenceourSpecialBulkSales–eBookLicensingwebpageathttp://www.
apress.
com/info/bulksales.
Theinformationinthisbookisdistributedonan"asis"basis,withoutwarranty.
Althougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthiswork.
Thesourcecodeforthisbookisfreelyavailabletoreadersatwww.
friendsofed.
comintheDownloadssection.
CreditsLeadEditor:BenRenow-ClarkeTechnicalReviewers:NatalieDowneandTonyWhiteEditorialBoard:ClayAndres,SteveAnglin,MarkBeckner,EwanBuckingham,TonyCampbell,GaryCornell,JonathanGennick,MichelleLowman,MatthewMoodie,JeffreyPepper,FrankPohlmann,BenRenow-Clarke,DominicShakeshaft,MattWade,TomWelshProjectManagers:RichardDalPortoandDebraKellyCopyEditor:HeatherLangCompositor:v-promptIndexer:BIMIndexingISBN978-1-4302-2397-9ISBN978-1-4302-2398-6(eBook)DOI10.
1007/978-1-4302-2398-6ToAlison,forallthehelpandsupportoverthelast6months.
—AndyBuddvContentsataGlanceContents.
viiForewordxivAbouttheAuthors.
xvAbouttheTechnicalReviewers.
xviiAcknowledgments.
xviiiIntroductionxxChapter1:SettingtheFoundations3Chapter2:GettingYourStylestoHittheTarget25Chapter3:VisualFormattingModelOverview51Chapter4:UsingBackgroundsforEffect.
71Chapter5:StylingLinks109Chapter6:StylingListsandCreatingNavBars133Chapter7:StylingFormsandDataTables.
175Chapter8:Layout.
205Chapter9:BugsandBugFixing245Chapter10:CaseStudy:RomaItalia275Chapter11:CaseStudy:ClimbtheMountains311Index355viiContentsForewordxivAbouttheAuthors.
xvAbouttheTechnicalReviewers.
xviiAcknowledgments.
xviiiIntroductionxxWhoisthisbookforxxHowisthisbookstructuredxxConventionsusedinthisbookxxiChapter1:SettingtheFoundations3Structuringyourcode4Abriefhistoryofmarkup4Thepowerofmeaning6IDsandclassnames.
7Namingyourelements.
9IDsorClasses10Divsandspans11Microformats12DifferentversionsofHTMLandCSS.
16Documenttypes,DOCTYPEswitching,andbrowsermodes18Validation.
18Browsermodes.
20DOCTYPEswitching.
21Summary.
22Chapter2:GettingYourStylestoHittheTarget25Commonselectors25Pseudo-classes.
27Theuniversalselector27Advancedselectors.
28Childandadjacentsiblingselectors28Attributeselectors30ContentsviiiThecascadeandspecificity35Specificity.
35Usingspecificityinyourstylesheets37AddingaclassoranIDtothebodytag.
38Inheritance.
39Planning,organizing,andmaintainingyourstylesheets.
40Applyingstylestoyourdocument40Structuringyourcode.
42Notetoself.
44Removingcommentsandoptimizingyourstylesheets.
45Styleguides.
45Summary.
48Chapter3:VisualFormattingModelOverview51Boxmodelrecap51IEandtheboxmodel53Margincollapsing54Positioningrecap.
57Thevisualformattingmodel57Relativepositioning59Absolutepositioning60Fixedpositioning.
61Floating.
62Lineboxesandclearing.
63Summary.
69Chapter4:UsingBackgroundsforEffect.
71Backgroundimagebasics.
72Rounded-cornerboxes.
75Fixed-widthrounded-cornerboxes.
75Flexiblerounded-cornerbox.
78Mountaintopcorners.
81Multiplebackgroundimages.
83Contentsixborder-radius.
85border-image.
86Dropshadows88EasyCSSdropshadows.
88DropshadowsàlaClagnut91Box-shadow91Opacity95CSSopacity95RGBa96PNGtransparency97CSSparallaxeffect99Imagereplacement.
102FahrnerImageReplacement(FIR)103Phark104ScalableInmanFlashReplacement(sIFR)104Summary.
106Chapter5:StylingLinks109Simplelinkstyling.
109Funwithunderlines111Simplelinkembellishments.
111Fancylinkunderlines.
112Visited-linkstyles.
113Stylinglinktargets113Highlightingdifferenttypesoflinks.
115Highlightingdownloadabledocumentsandfeeds.
117Creatinglinksthatlooklikebuttons.
118Simplerollovers.
120Rolloverswithimages120Pixy-stylerollovers121CSSsprites.
123RolloverswithCSS3.
125ContentsxPureCSStooltips.
128Summary.
130Chapter6:StylingListsandCreatingNavBars133Basicliststyling.
134Creatingabasicverticalnavbar.
135Highlightingthecurrentpageinanavbar138Creatingasimplehorizontalnavbar.
139Creatingagraphicalnavbar.
142Simplifiedslidingdoortabbednavigation.
144Suckerfishdrop-downs.
147CSSimagemaps151Flickr-styleimagemaps.
156Remoterollovers165Ashortnoteaboutdefinitionlists171Summary.
172Chapter7:StylingFormsandDataTables.
175Stylingdatatables.
176Table-specificelements.
178Summaryandcaption.
178thead,tbody,andtfoot178colandcolgroups.
179Datatablemarkup.
179Stylingthetable.
181Addingthevisualstyle.
182Simpleformlayout.
185Usefulformelements186Formlabels187Thebasiclayout188Otherelements.
189Embellishments192Requiredfields.
193ContentsxiComplicatedformlayout193Accessibledateinput195Multicolumncheckboxes196Submitbuttons.
198Formfeedback201Summary.
203Chapter8:Layout.
205Planningyourlayout.
206Settingthefoundations208Centeringadesignusingmargins.
210Float-basedlayouts.
212Two-columnfloatedlayout213Three-columnfloatedlayout.
216Fixed-width,liquid,andelasticlayout.
219Liquidlayouts220Elasticlayouts223Liquidandelasticimages.
226Fauxcolumns.
228Equal-heightcolumns.
231CSS3columns.
236CSSFrameworksvs.
CSSSystems238Summary.
243Chapter9:BugsandBugFixing245Bughunting246CommonCSSproblems.
246Problemswithspecificityandsortorder247Problemswithmargincollapsing249Bughuntingbasics.
252Trytoavoidbugsinthefirstplace254Isolatetheproblem.
254Creatingminimaltestcases255ContentsxiiFixingtheproblem,notthesymptoms256Askingforhelp.
256Havinglayout.
256Whatislayout257Whateffectdoeslayouthave258Workarounds.
260InternetExplorerconditionalcomments.
260Awarningabouthacksandfilters261Usinghacksandfilterssensibly262ApplyingtheIEforMacbandpassfilter.
262ApplyingthestarHTMLhack263Applyingthechildselectorhack.
264Commonbugsandtheirfixes264Double-marginfloatbug.
264Three-pixeltextjogbug.
265IE6duplicatecharacterbug.
267IE6peek-a-boobug.
269Absolutepositioninginarelativecontainer.
269StoppickingonInternetExplorer270Gradedbrowsersupport271Summary.
273Chapter10:CaseStudy:RomaItalia276Aboutthiscasestudy276Thefoundation278AneyetowardsHTML5.
279reset.
css281The1080layoutandgrid282Usinggridsinwebdesign283AdvancedCSS2andCSS3features285Dowebsitesneedtolookexactlythesameineverybrowser.
com285Attributeselector288Contentsxiiibox-shadow,RGBa,andtext-overflow.
289Fontlinkingandbetterwebtypography293Settingfont-sizelikeit's1999.
293Hangingpunctuation294Multi-columntextlayout.
296@font-face.
298Cufón,aninterimsteptowards@font-face.
301AddinginteractivitywithAjaxandjQuery.
303Ajax.
304jQuery.
305UsingAjax+jQueryforthesearchfeature307Summary.
310Chapter11:CaseStudy:ClimbtheMountains311Aboutthiscasestudy312StyleSheetorganizationandconventions.
314Thehard-workingscreen.
css315Describingcontents315Reset316IEstylesheetsusingconditionalcomments317Gridflexibility.
317HowdoestheCTMlayoutwork318Navigationcontrolwithbodyclasses319Highlightingthecurrentpage319Layeringtheblockquote323Strategicallytargetingelements.
325Deepdescendentselectors.
325The:first-childpseudo-class.
329Adjacentsiblingselectors.
331Transparency,shadows,androundedcorners.
332Ouraim.
332CaptionimageoverlayandRGBatransparency.
333ContentsxivCombiningclasses336border-radius337box-shadow339Positioninglistsandrevealingcontent.
340Roundingthecorners.
343Themainelevationchart.
344Summary.
351Index355xvForewordInourwonderfulworldofwebdesign,thereare3,647waystoaccomplishthesamegoal—approximately.
Andthatabsurdlyfictitiousnumberisincreasingeveryday.
Insteadofone,correctwayofsolvingaparticularproblem,we'rebothblessedandcursedbytheabundantchoiceswehaveaswebdesigners.
It'sthesechoicesthatmakedesigningfortheWebfunandinteresting,whileatthesametimeoverwhelming.
CSSMasterywillhelpcurethatoverwhelmingitis(awordthatI'vejustinvented).
AndyBuddhasbeenwriting,designing,andspeakingaboutstandards-basedwebdesignforyears,andwe'renowluckytoseehisclear,easy-to-followwayofteachingessentialCSStechniquescompiledinthisverybook.
Theresultisacardcatalogofindispensablesolutions,tricks,andtipsthatawebprofessionalsuchasyourselfshouldnotbewithout.
I'vealwaysfrownedonpublicationsthatsuggestasingle,correctwayofaccomplishingagoal,andAndydoesthecompleteopposite,offeringmultiplemethodsfortaskssuchasstylinglinks,creatingtabbednavigation,utilizingtime-savingCSS3solutions,orcreatingfixed,fluid,orelasticlayouts,aswellasgivingtipsonhowtotroubleshootthosepeskybrowserbugsthatgoalongwithdesigningwithCSS(tonamebutafew).
Armedwiththesepopularandstylishapproachestocommondesignelements,you'llbebetterpreparedtomakeyourowninformeddecisions.
Andasifthatwasn'tenough,Andy'sgoneaheadandenlistedthehelpoftwoimitabledesignerstohelppullallthepiecestogether,showinghowtheseessentialtechniquescanworktogether.
I'velongbeenafanofCameron'sandSimon'swork,andtoseetwogreatcasestudiescoveringfluid,bulletproofdesignsaswellasflexiblestylesolutions,respectively,well,that'sjustagiganticbonus.
Sodiginandstartchippingawayatthose3,647waystomasteryourCSS.
DanCederholmAuthor,WebStandardsSolutionsxviAbouttheAuthorsAndyBuddisoneofthefoundingpartnersatUserExperienceDesignConsultancy,Clearleft(clearleft.
com).
Asaninteractiondesignandusabilityspecialist,AndyisaregularspeakeratinternationalconferenceslikeWebDirections,AnEventApart,andSXSW.
AndycuratesdConstruct(dconstruct.
org),oneoftheUK'smostpopulardesignconferences.
He'salsoresponsibleforUXLondon(uxlondon.
com),theUK'sfirstdedicatedusability,informationarchitecture,anduserexperiencedesignevent.
AndywasanearlychampionofwebstandardsintheUKandhasdevelopedanintimateunderstandingoftheCSSspecificationandcross-browsersupport.
Asanactivememberofthecommunity,Andyhashelpedjudgeseveralinternationaldesignawardsandcurrentlysitsontheadvisoryboardfor.
Netmagazine.
AndyisalsothedrivingforcebehindSilverbackapp(silverbackapp.
com),alow-costusabilitytestingtoolfortheMac.
AndyisanavidTwitteruser(@andybudd)andoccasionallyblogsatandybudd.
com.
Neverhappierthanwhenhe'sdivinginsomeremotetropicalatoll,AndyisaqualifiedPADIdiveinstructorandretiredsharkwrangler.
CameronMollhasbeendesigningmeaningfulwebinterfacesthatharmonizeutilityandpresentationsincethelate1990s.
HisworkoradvicehasbeenfeaturedbyHOW,Print,andCommunicationArtsmagazines,ForresterResearch,NationalPublicRadio(NPR),andmanyothers.
Hespeaksonuserinterfacedesignatconferencesnationallyandinternationally,andheisalsotheauthorofMobileWebDesign(mobilewebbook.
com).
CameronisthefounderandpresidentofAuthenticJobsInc.
(authenticjobs.
com),atargeteddestinationforwebandcreativeprofessionalsandthecompaniesseekingtohirethem.
HeisalsotheproprietorofCameronMollLLC,whoseproductsincludeletterpresstypographypostersavailableforpurchaseatcameronmoll.
bigcartel.
com.
Andamidallthiscraziness,hestillfindstimetoplayballwitheachofhisfourboys.
YoucanalsofindCamerononlineatcameronmoll.
com,twitter.
com/cameronmoll,flickr.
com/photos/authentic,andvimeo.
com/cameronmoll.
AbouttheAuthorsxviiSimonCollisoniscofounderandcreativedirectoratErskineDesign(erskinedesign.
com),partofatalentedteamofdesignersanddevelopersdoingexceptionalthings.
Overthelasttenyears,he'sworkedonnumerouswebprojectsforrecordlabelsandbands,visualartists,businesses,government—prettymuchthefullgamut.
He'snowworkingwithabroadclientlistrangingfromestablishedmagazinestopolarexplorers.
Collywritesalong-runningblog(colly.
com),writesaboutthewebatErskineLabs(erskinelabs.
com)andhehaswrittenthebestsellingBeginningCSSWebDevelopment(ISBN:978-1-59059-689-0)forApressandcoauthoredWebStandardsCreativity(ISBN:978-1-59059-803-0).
He'sneverhappierthanwhenhe'sexperimentingwithCSSandHTML,orwhentalkingaboutitinfrontofanaudience.
Intherealworld,CollylovesclimbingmountainsandgettinglostinthewildernessesoftheUKorIceland.
Hedrivesa32-year-oldcarandhasastupidcatcalledBearface.
xviiiAbouttheTechnicalReviewersNatalieDowneisaperfectionistbynatureandworksforBrighton'sClearleftasaclient-sidewebdeveloper.
Anexperiencedusabilityconsultantandprojectmanager,herfirstlovesremainfront-enddevelopmentandusabilityengineering.
SheenjoysDoingThingsRightandoccasionallydabblinginthedarkartsofPythonandpokingtheoddAPI.
TonyWhiteisafront-enddeveloperanddesignerlivinginMemphis,Tennessee.
DuringthedayheistheuserinterfacemanagerforHiltonHotels,wherehenurturesusability,advocateswebstandards,andlassosHTMLwithjQuery.
Healsorunstheone-manshowAsktheCSSGuy(askthecssguy.
com),anafter-hourssitedevotedtopeakingunderthehoodofCSSandJavaScriptwebdesigntechniques.
xixAcknowledgmentsThankstoeverybodywhohelpedmakethisbookpossible,bothdirectlyandindirectly.
TomyfriendsandcolleaguesatClearleft:Thanksforprovidingencouragementandfeedbackthroughoutthebook-writingprocess.
AndespeciallytoNatalieDowneforlendingyourexperienceandbreadthofknowledgetothisbook:Yoursupportandguidancewasinvaluable,andIstilldon'tknowwhereyoumanagetofindthetime.
ToChrisMillsforguidingmethroughtheinitialwritingprocessandhelpingturnmyideasintoreality,andtoeverybodyatApresswhoworkedtirelesslytogetthisbookpublishedontime:Yourdedicationandprofessionalismismuchappreciated.
ToallmycolleagueswhocontinuetosharetheirwealthofknowledgeinordertomaketheWebabetterplace:Thisbookwouldnothavebeenpossiblewithoutthepreviousworkofthefollowingpeople,tonamebutafew:CameronAdams,JohnAllsopp,RachelAndrew,NathanBarley,HollyBergevin,MarkBoulton,DouglasBowman,TheBritPack,DanCederholm,Tantekelik,JoeClark,AndyClarke,SimonCollison,MikeDavidson,GarrettDimon,DerekFeatherstone,NickFink,PatrickGriffiths,JonHicks,MollyE.
Holzschlag,ShaunInman,RogerJohansson,JeremyKeith,IanLloyd,EthanMarcotte,DrewMcLellan,EricMeyer,CameronMoll,DunstanOrchard,VeerlePieters,D.
KeithRobinson,RichardRutter,JasonSantaMaria,DaveShea,JeffreyVeen,RussWeakley,SimonWillison,andJeffreyZeldman.
ToallthereadersofmyblogandeverybodyI'vemetatconferences,workshops,andtrainingeventsoverthelastcoupleofyears:Yourdiscussionsandideashelpedfuelthecontentofthisbook.
Andfinally,thankstoyouforreading.
IhopethisbookhelpsyoutakeyourCSSskillstothenextlevel.
AndyBuddFirst,thankstoyouforchoosingthisbook.
Ihopeitimprovesthecaliberofworkyoudo,dayinanddayout.
I'mendlesslyinspiredbythepotentialofthoseinourindustry,andthatincludesyou.
IechoAndy'swordsingivingthankstothemanynotableindividualsthathaveshapedandrefinedtheWeb,makingitabetterplacetodaythanit'severbeen.
Yearsfromnow,theseindividualswillbejustasreveredasthosemenandwomenwhofirstsentmentotheMoon.
AspecialthankstoAaronBarker(aaronbarker.
net)whoassistedwithseveralofthejQueryandAJAXexamplesinmycasestudy.
Mostimportantly,Igivemyutmostgratitudetomybeautifulwife,Suzanne,andfoursons,Everest,Edison,Isaac,andHudson.
Withouttheirlove,supportandpatience,theworkI'veproducedtodatewouldnothavebeenrealized.
CameronMollAcknowledgmentsxxImustthankmyfriendandcolleagueGregoryWoodforhisideasandassistancewiththe"ClimbtheMountains"concept.
Everythingheproducesinspiresme,andhe'sthedesignerIwanttobewhenIgrowup.
I'dalsoliketothankallofmycolleaguesatErskineDesignfortheirsupportandforturningablindeyetomyfeverishworkonprojectssuchasthis.
BigthankstoSimonCampbell,JamiePittock,GlenSwinfield,PhilSwan,VickyTwycross,andAngelaCampbell.
Aboveall,Ishouldtakethisopportunitytothankmymum,andthosethatIhavelostsincethefirsteditionofthisbook,mytwograndfathers,andespeciallymydad.
Istilldothisstufftomakeyouproud,eventhoughyou'vegone.
SimonCollisonxxiIntroductionThereareanincreasingnumberofCSSresourcesaround,yetyouonlyhavetolookataCSSmailinglisttoseethesamequestionspoppinguptimeandagain:HowdoIcenteradesignWhatisthebestrounded-cornerboxtechniqueHowdoIcreateathree-columnlayoutIfyoufollowtheCSSdesigncommunity,findingthesolutionisusuallyacaseofrememberingwhichwebsiteaparticulararticleortechniqueisfeaturedon.
However,ifyouarerelativelynewtoCSS,ordon'thavethetimetoreadalltheblogs,thisinformationcanbehardtotrackdown.
EvenpeoplewhoareskilledatCSSrunintoproblemswithsomeofthemoreobscureaspectsofCSSsuchasthepositioningmodelorspecificity.
ThisisbecausemostCSSdevelopersareself-taught,pickinguptricksfromarticlesandotherpeople'scodewithoutfullyunderstandingthespecifications.
Andisitanywonder,astheCSSspecificationiscomplex,oftencontradictory,andwrittenforbrowsermanufacturersratherthanwebdevelopersThentherearethebrowserstocontendwith.
BrowserbugsandinconsistenciesareoneofthebiggestproblemsforthemodernCSSdeveloper.
Unfortunately,manyofthesebugsarepoorlydocumented,andtheirfixesvergeonthesideoffolklaw.
Youknowthatyouhavetodosomethingacertainway,oritwillbreakinonebrowseroranother.
Youjustcan'trememberforwhichbrowserorhowitbreaks.
Sotheideaforabookformed.
AbookthatbringstogetherthemostusefulCSStechniquesinoneplace,thatfocusesonreal-worldbrowserissuesandthathelpsplugcommongapsinpeople'sCSSknowledge.
AbookthatwillhelpyoujumpthelearningcurveandhaveyoucodinglikeaCSSexpertinnotimeflat.
WhoisthisbookforCSSMasteryisaimedatanybodywithabasicknowledgeofHTMLandCSS.
IfyouhavejustrecentlydippedyourtoesintotheworldofCSSdesign,orifyou'vebeendevelopingpureCSSsitesforyears,therewillbesomethinginthisbookforyou.
However,youwillgetthemostoutofthisbookifyouhavebeenusingCSSforawhilebutdon'tconsideryourselfanexpertjustyet.
Thisbookispackedfullofpractical,real-worldadviceandexamplestohelpyoumastermodernCSSdesign.
HowisthisbookstructuredThisbookeasesyouingently,withthreechaptersonbasicCSSconceptsandbestpractices.
Youwilllearnhowtostructureandcommentyourcode,theins-and-outsoftheCSSpositioningmodel,andhowfloatingandclearingreallyworks.
Youmayknowalotofthisalready,butyouwillprobablyfindbitsyou'vemissedornotunderstoodfully.
Assuch,thefirstthreechaptersactasagreatCSSprimeraswellasarecaponwhatyoualreadyknow.
Withthebasicsoutoftheway,thenextfivechapterscovercoreCSStechniquessuchasimage,link,andlistmanipulation;formanddata-tabledesign;andpureCSSlayout.
EachchapterstartsIntroductionxxiisimplyandthenworksuptoprogressivelymorecomplicatedexamples.
Inthesechapters,youwilllearnhowtocreaterounded-cornerboxes,imageswithtransparentdropshadows,tabbednavigationbars,andinteractivebuttons.
Withmanyofthesetechniques,youwillfirstlearnthetraditionalwayofdoingthembeforeseeinghowyoucanachievethesameaffectusingCSS3.
Ifyouwanttofollowalongwiththeexamplesinthisbook,allthecodeexamplescanbedownloadedfromwww.
cssmastery.
comorwww.
friendsofed.
com.
BrowserbugsarethebaneofmanyaCSSdeveloper,soalltheexamplesinthisbookfocusoncreatingtechniquesthatworkacrossbrowsers.
What'smore,thisbookcontainsawholechapterdevotedtobugsandbugfixing.
Inthischapter,youwilllearnallaboutbug-huntingtechniquesandhowtospotandfixcommonbugsbeforetheystartcausingproblems.
YouwillevenlearnwhatreallycausesmanyofMicrosoftInternetExplorer'sseeminglyrandomCSSbugs.
Thelasttwochaptersarethepiècederésistance.
SimonCollisonandCameronMoll,twoofthebestCSSdesignersaround,havecombinedallofthesetechniquesintotwofantasticcasestudies.
Soyoulearnnotonlyhowthesetechniquesworkbutalsohowtoputthemintopracticeonareal-lifewebproject.
Thisbookcanbereadfromcovertocoverorkeptbyyourcomputerasareferenceofmoderntips,tricks,andtechniques.
Thechoiceisuptoyou.
ConventionsusedinthisbookThisbookusesacoupleofconventionsthatareworthnoting.
Thefollowingtermsareusedthroughoutthisbook:HTMLreferstoboththeHTMLandXHTMLlanguages.
Unlessotherwisestated,CSSrelatestotheCSS2.
1specification.
InternetExplorer6(IE6)andbelowonWindowsreferstoInternetExplorer5.
0to6.
0onWindows.
ModernbrowsersareconsideredtobethelatestversionsofFirefox,Safari,andOperaalongwithIE7andabove.
ItisassumedthatalltheHTMLexamplesinthisbookarenestedintheofavaliddocument,whiletheCSSiscontainedwithinanexternalstylesheet.
Occasionally,HTMLandCSShavebeenplacedinthesamecodeexampleforbrevity.
However,inarealdocument,theseitemsneedtogointheirrespectiveplacestofunctioncorrectly.
Finally,forHTMLexamplesthatcontainrepeatingdata,ratherthanwritingouteveryline,theellipsischaracter(.
.
.
)isusedtodenotecodecontinuation:Withtheformalitiesoutoftheway,let'sgetstarted.
收到好多消息,让我聊一下阿里云国际版本,作为一个阿里云死忠粉,之前用的服务器都是阿里云国内版的VPS主机,对于现在火热的阿里云国际版,这段时间了解了下,觉得还是有很多部分可以聊的,毕竟,实名制的服务器规则导致国际版无需实名这一特点被无限放大。以前也写过几篇综合性的阿里云国际版vps的分析,其中有一点得到很多人的认同,那句是阿里云不管国内版还是国际版的IO读写速度实在不敢恭维,相对意义上的,如果在这...
racknerd发表了2021年美国独立日的促销费用便宜的vps,两种便宜的美国vps位于洛杉矶multacom室,访问了1Gbps的带宽,采用了solusvm管理,硬盘是SSDraid10...近两年来,racknerd的声誉不断积累,服务器的稳定性和售后服务。官方网站:https://www.racknerd.com多种加密数字货币、信用卡、PayPal、支付宝、银联、webmoney,可以付...
LightNode是一家成立于2002年,总部位于香港的VPS服务商。提供基于KVM虚拟化技术.支持CentOS、Ubuntu或者Windows等操作系统。公司名:厦门靠谱云股份有限公司官方网站:https://www.lightnode.com拥有高质量香港CN2 GIA与东南亚节点(河内、曼谷、迪拜等)。最低月付7.71美金,按时付费,可随时取消。灵活满足开发建站、游戏应用、外贸电商等需求。首...
freepornmovies为你推荐
国家网络安全部加强国家网络安全的重要意义 ?.cn域名cn域名有什么用啊?安徽汽车网安徽省各地车牌号简称是按照什么顺序排的硬盘的工作原理硬盘的工作原理是?(不要给我网址,我用的手机)刘祚天DJ是什么职业?丑福晋男主角中毒眼瞎毁容,女主角被逼当丫鬟,应用自己的血做药引帮男主角解毒的言情小说百花百游百花百游的五滴自游进程51sese.com谁有免费看电影的网站?javmoo.com找下载JAV软件格式的网站se9999se.comexol.smtown.com
域名服务器的作用 arvixe 搬瓦工官网 2014年感恩节 天猫双十一秒杀 嘉洲服务器 52测评网 上海域名 大容量存储器 中国电信测速网 电信虚拟主机 彩虹云 免费邮件服务器 万网主机管理 lick 阿里云邮箱登陆地址 双11促销 rewritecond 网站防护 架设代理服务器 更多