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.
前几天看到网友反馈到PacificRack商家关于处理问题的工单速度慢,于是也有后台提交个工单问问,没有得到答复导致工单自动停止,不清楚商家最近在调整什么。而且看到有网友反馈到,PacificRack 商家的之前年付低价套餐全部下架,而且如果到期续费的话账单中的产品价格会涨价不少。所以,如果我们有需要续费产品的话,谨慎选择。1、特价产品下架我们看到他们的所有原来发布的特价方案均已下架。如果我们已有...
最近主机参考拿到了一台恒创科技的美国VPS云服务器测试机器,那具体恒创科技美国云服务器性能到底怎么样呢?主机参考进行了一番VPS测评,大家可以参考一下,总体来说还是非常不错的,是值得购买的。非常适用于稳定建站业务需求。恒创科技服务器怎么样?恒创科技服务器好不好?henghost怎么样?henghost值不值得购买?SonderCloud服务器好不好?恒创科技henghost值不值得购买?恒创科技是...
昨天有在"盘点2021年主流云服务器商家618年中大促活动"文章中整理到当前年中大促618活动期间的一些国内国外的云服务商的促销活动,相对来说每年年中和年末的活动力度还是蛮大的,唯独就是活动太过于密集,而且商家比较多,导致我们很多新人不懂如何选择,当然对于我们这些老油条还是会选择的,估计没有比我们更聪明的进行薅爆款新人活动。有网友提到,是否可以整理一篇当前的这些活动商家中的促销产品。哪些商家哪款产...
freepornmovies为你推荐
梦之队官网NBA梦之队是什么游戏?李子柒年入1.6亿新晋网红李子柒是不是背后有团队是摆拍、炒作为的是人气、流量?百花百游“百花竟放贺阳春 万物从今尽转新 末数莫言穷运至 不知否极泰来临”是什么意思啊?51sese.comwww.51xuanh.com这是什么网站是骗人的吗?ip在线查询我要用eclipse做个ip在线查询功能,用QQwry数据库,可是我不知道怎么把这个数据库放到我的程序里面去,高手帮忙指点下,小弟在这谢谢了javbibinobibi的中文意思是?partnersonline国内有哪些知名的ACCA培训机构www.ijinshan.com桌面上多了一个IE图标,打开后就链接到009dh.com这个网站,这个图标怎么删掉啊?www.diediao.com跪求鸭王2朴容熙这个人男的女的,哪国人。叫什么。
哈尔滨域名注册 广东服务器租用 重庆vps租用 新秒杀 a2hosting 便宜服务器 息壤备案 diahosting 美国主机网 2017年黑色星期五 ssh帐号 线路工具 大容量存储器 双拼域名 谁的qq空间最好看 河南m值兑换 100m空间 hkg gtt 网站在线扫描 更多