O'Reilly logo

Sams Teach Yourself CSS in 10 Minutes by Russ Weakley

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

Chapter 22. Troubleshooting CSS

In this lesson, you will learn how to fix some common CSS errors. You also will learn some tips for troubleshooting CSS.

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.

Example 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 ...

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