SEARCH: webmonkey  the web

 



Quick Reference:

Javascript Code Library
HTML Cheatsheet
Special Characters
Color Codes
Browser Chart
Stylesheet Guide
Unix Guide

How CSS Works

CSS overrides the browser's default settings for interpreting how tags should be displayed, letting you use any HTML element indicated by an opening and closing tag (including the <p> tag) to apply style attributes defined either locally or in a stylesheet.

Stylesheets contain rules, composed of selectors and declarations that define how styles will be applied. The selector (a redefined HTML element, class name, or ID name) is the link between the HTML document and the style. There are two different kinds of selectors: types (HTML element tags) and attributes (such as class and ID names).

A CSS declaration has two parts,

a property ("color") and a value ("red").

The basic syntax of a rule

selector {property 1: value 1; property 2: value: 2}

An example (containing two declarations, as above)

P {font-size: 8pt; color: red}

- What Is CSS?
- Linking Stylesheets
- Units of Measure
- CSS-P (Position)
- Attributes
- CSS Properties
- CSS Examples

webmonkey /  stylesheets

CONTENTS
E-Business |  Design |  HTML |  JavaScript |  Databases |  Graphics & Fonts |  Multimedia |  Browsers |  Java |  Dynamic HTML |  Stylesheets |  Backend |  Jobs |  XML | 

OTHER RESOURCES
Distractions | Newsletters | Music | Books | Software


Editorial Policy  |  Help  |  Feedback  |  About Terra Lycos  |  Jobs  |  Advertise  |  Business Development

Copyright © 2001 Lycos, Inc. All Rights Reserved.
Lycos ® is a registered trademark of Carnegie Mellon University.
Your use of this Web site constitutes acceptance of the Lycos Network Privacy Policy [Updated] and Terms & Conditions.