• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 22. Troubleshooting CSS > Setting Up the CSS Code

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


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint