Setting Up the CSS Code


The CSS code for this lesson is shown in Listing 22.1. The code contains 12 common CSS problems that will be corrected during the lesson.

Listing 22.1. CSS Code Showing All the Rules with 12 Common Problems
 body {     font-family: times, times new roman, serif; } #container {     border: 1px gray;     background-image: url("background.jpg");     background-repeat: repeat-x;     background-attach: fixed;     width: 700; } h1 {     font-size: 200%;     color: none; } .introductionText {     font-weight: bold; } h2 {     font-size: 120%     font-weight: normal;     color: #34a32; } p, ul, {     font-size: 80%;     color: 333; } a:visited {     color: purple; } a:link {     color: blue; } a:hover {     color: red; } a:active {     color: black; } #container p {     color: #000; } p.intro {     color: #900; } 




Sams Teach Yourself CSS in 10 Minutes
Sams Teach Yourself CSS in 10 Minutes
ISBN: 0672327457
EAN: 2147483647
Year: 2005
Pages: 234
Authors: Russ Weakley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net