11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

72 cascading style sheetsMojave Desert course, navigating by means <strong>of</strong> a camera, laserrange finders, <strong>and</strong> radar. In 2007 the contest entered a moredifficult arena, where the robot vehicles had to deal withsimulated urban traffic, negotiate intersections <strong>and</strong> trafficcircles, <strong>and</strong> merge with traffic, all while obeying traffic laws.Meanwhile efforts continue for developing a practicalautomated system that could be used for everyday driving. A“tethered” system using magnetic or radio frequency guidesembedded in the road would reduce the complexity <strong>of</strong> theon-board navigation system, but would probably require dedicatedroads. A “free” system linked only wirelessly would bemuch more flexible, but would require the ability to visualize<strong>and</strong> assess a constantly changing environment <strong>and</strong>, ifnecessary, make split-second decisions to avoid accidents.Such systems may also feature extensive automatic communication,where cars can provide each other with informationabout road conditions as well as their intended maneuvers.The biggest obstacles to implementation <strong>of</strong> a fully automatedhighway system may be human rather than technical:the cost <strong>of</strong> the infrastructure, the need to convince thepublic the system is safe <strong>and</strong> reliable, <strong>and</strong> concerns aboutpotential legal liability.Ironically, just as information technology is making carssafer, such activities as cell phone use, text messaging, <strong>and</strong>use <strong>of</strong> in-car entertainment systems seem to be makingdrivers more distracted. Whether cars will get smart fastenough to compensate for increasingly inattentive driversremains an open question.Further ReadingDARPA Gr<strong>and</strong> Challenge. Available online. URL: http://www.darpa.mil/gr<strong>and</strong>challenge/index.asp. Accessed May 18, 2007.Edwards, John. “Robotic Cars Get Street Smart.” Electronic Design55 (June 29, 2007): 89 ff.Shladover, Steven E. “What if Cars Could Drive Themselves?” Availableonline. URL: http://faculty.washington.edu/jbs/itrans/ahspath.htm. Accessed May 18, 2007.Whelan, Richard. Smart Highways, Smart Cars. Boston: ArtechHouse, 1995.cascading style sheets (CSS)Most word processor users are familiar with the use <strong>of</strong> stylesin formatting text. Using a built-in style or defining one’sown, particular characteristics can be assigned to the structuralparts <strong>of</strong> a document, such as headings, lead <strong>and</strong> bodyparagraphs, quotations, references, <strong>and</strong> so on. There are severaladvantages to using styles. Once a style is associatedwith an element, the formatting attached to that style canautomatically be applied to all instances <strong>of</strong> the element. If thewriter decides that, for example, level two headings shouldbe in italics rather than normal font, a simple change to the“head2” style will change all level two headings to italics.Cascading style sheets (CSS) extend this idea to thecreation <strong>of</strong> Web pages. The style sheet defines the structuralelements <strong>of</strong> the document <strong>and</strong> applies the desired formatting.Instead <strong>of</strong> the main text <strong>of</strong> the document being filledwith formatting directives (see html), a style sheet is associatedwith the document. When a compatible Web browserloads the page, it also loads the associated style sheet <strong>and</strong>Cascading Style sheets enable the appearance <strong>and</strong> formatting <strong>of</strong> aWeb page to be h<strong>and</strong>led separately from the page contents. Specificationsprovided in one sheet can be inherited or modified by othersheets.uses it to determine how the page will be displayed. Inother words, the structure <strong>of</strong> the document is separatedfrom the details <strong>of</strong> its presentation. This not only makesit easier to change styles (as with word processing), but italso means that different style sheets can be used to tailorthe document to different viewing situations (for example,viewing in a browser on a h<strong>and</strong>held PDA).CSS uses a st<strong>and</strong>ard “box model” for laying out the presentation<strong>of</strong> a page. From outside in, the areas are definedas outer edge, margin, border, padding, inner edge, <strong>and</strong> thecontent area. Styles are applied in an order that dependson the relationship <strong>of</strong> the affected elements. For example,a style defined for the text body will be inherited by theparagraph, which can then redefine one or more <strong>of</strong> its elements.Similarly, an emphasis style used within a sentencemight override the paragraph style in turn. It is this flowing<strong>of</strong> definitions down through the hierarchy <strong>of</strong> styles that createsthe “cascading” part <strong>of</strong> CSS.As CSS developed further, separate specifications havebeen provided for different media that can be included ina Web page: speech (to be read by a speech synthesizer),Braille (for a tactile Braille system), Emboss (for Brailleprinting), H<strong>and</strong>held (for PDAs <strong>and</strong> other devices with limiteddisplay space), Print, Projection (for computer projectionor transparencies), Screen, Tty (teletype-like displayswith fixed-width characters), <strong>and</strong> TV.Further Reading“CSS From the Ground Up.” Web Page Design. Available online.URL: http://www.wpdfd.com/editorial/basics/index.html.Accessed May 19, 2007.Lie, Hakon Wium, <strong>and</strong> Bert Ros. Cascading Style Sheets: Designingfor the Web. 3rd ed. Addison-Wesley Pr<strong>of</strong>essional, 2005.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!