CSUN Wordmark

Introduction to CSS/Dreamweaver

ANATOMY OF CSS

SELECTOR { PROPERTY : VALUE}

h1 { font-weight:bold;}

img { border:1px solid #990000;}

.classname {margin:5px; }

#idname {padding:10px; }

A rule consists of two parts: Selector (before left curly brace), Declaration (between curly braces) The declaration is divided into property and value. The selector tells the browser what element in the html document should be styled according to the declaration. The braces and colon make it possible for the browser to differentiate between the selector, property and value. Selectors can be grouped. Properties and values can be combined.