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.
不知道大家是否注意到sharktech的所有服务器的带宽价格全部跳楼跳水,降幅简直不忍直视了,还没有见过这么便宜的独立服务器。根据不同的机房,价格也是不一样的。大带宽、不限流量比较适合建站、数据备份、做下载、做流媒体、做CDN等多种业务。 官方网站:https://www.sharktech.net 付款方式:比特币、信用卡、PayPal、支付宝、西联汇款 以最贵的洛杉矶机器为例,配置表如...
腾讯云轻量应用服务器又要免费升级配置了,之前已经免费升级过一次了(腾讯云轻量应用服务器套餐配置升级 轻量老用户专享免费升配!),这次在上次的基础上再次升级。也许这就是良心云吧,名不虚传。腾讯云怎么样?腾讯云好不好。腾讯云轻量应用服务器 Lighthouse 是一种易于使用和管理、适合承载轻量级业务负载的云服务器,能帮助个人和企业在云端快速构建网站、博客、电商、论坛等各类应用以及开发测试环境,并提供...
Digital-VM商家的暑期活动促销,这个商家提供有多个数据中心独立服务器、VPS主机产品。最低配置月付80美元,支持带宽、流量和IP的自定义配置。Digital-VM,是2019年新成立的商家,主要从事日本东京、新加坡、美国洛杉矶、荷兰阿姆斯特丹、西班牙马德里、挪威奥斯陆、丹麦哥本哈根数据中心的KVM架构VPS产品销售,分为大硬盘型(1Gbps带宽端口、分配较大的硬盘)和大带宽型(10Gbps...
freepornmovies为你推荐
有机zz怎么看不了呢youj1zz不能看还有什么网站openeuler电脑上显示openser是什么意思?甲骨文不满赔偿工作不满半年被辞退,请问赔偿金是怎么算的?网站检测请问,对网站进行监控检测的工具有哪些?789se.comwuwu8.com这个站长是谁?www.bbb551.comHUNTA551第一个第二个妹子是谁呀??5566.com5566网址大全175qq.com查询QQ登录地址29ff.comhttp://fcm.com在哪里输入这个网址啊彪言彪语寻找一个电影和里面的一首歌,国产的,根据真实故事改编的校园爱情电影,里面的男主角是个屌丝但很会弹钢
二级域名查询 互联网域名管理办法 美国主机评论 gomezpeer tightvnc 中国特价网 admit的用法 老左来了 双11秒杀 cn3 华为云服务登录 视频服务器是什么 西安服务器托管 免费的asp空间 免费ftp 免费网络 永久免费空间 中国联通宽带测速 新疆服务器 德国代理 更多