O'Reilly logo

Cascading Style Sheets (CSS) by Example by Steve Callihan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Example HTML File

The example you use in this chapter is for a fictional computer consulting firm, Cramer Computer Consultants. The example HTML file, cramer-consult.html, should already be available, if you downloaded and extracted the example files to your working folder. You can also type in the example file, if you wish (see Figure 13.1):

Listing 13.1. CRAMER-CONSULT.HTML—Cramer Computer Consultants
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Cramer Computer Consultants</title> <style type="text/css"> body { color: black; background: #fc9; font-family: Arial, sans-serif; } p { margin-left: 2em; margin-right: 2em; } h1 { color: #fc0; background: #306; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required