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 ...
Get Sams Teach Yourself CSS in 10 Minutes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.