>> English << | Português | По-русскиZVON > Tutorials > CSS tutorial
>> Example 17 << | Prev | Next | Contents

Description

This tutorial gave just a short introduction to the power of stylesheets. CSS 1 offers many more possibilities and its power was multiplied by CSS 2. As the next step toward mastering CSS we recommend a careful study of our complete CSS 1 reference with many additional examples and properties not mentioned in this introductory material.

>> Case 1 <<
HTML SourceCSS stylesheet

<p>Have</p>
<div>a good</div>
<p class = "time">time!</p>
body {color:black; background-color: white; 
      border:thick double red; 
      margin:2em; padding:2em}

p {font-size:40px; font-weight:bold}
div {font-size:20px; font-weight:normal; color:green}
p.time {font-size:60px; font-weight:900; 
        color:blue; text-decoration:underline}

Browser output