Приглашаем посетить
Хемницер (hemnitser.lit-info.ru)

Setting Up the CSS Code

Previous Page
Table of Contents
Next Page

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;
}


Previous Page
Table of Contents
Next Page