These pages use Javascript to provide a stylesheet appropriate to your browser. The pages are functional without javascript but not aesthetically pleasing.

DreamweaverMX Tutorials

6. Tables & CSS

Dreamweaver Tutorials

6.4 Basic CSS

Cascading Style Sheets (CSS) provides a flexible way to format text and allows designers to separate content from presentation.

CSS also makes it easy to institute global changes -- you can change the appearance of 100s of pages by changing body color in the core stylesheet.

"Cascading" means that when there are multiple styles defined for a specific page or element, the browser will give them priority based on "how close" they are to the element in question. Thus:
  • An inline style takes precedence over all other styles
  • An embedded style (in the head of the document) takes precedence over an external stylesheet
  • If more than one external stylesheet is referenced, the last one will take precedence
Anatomy of Style
     
     h1	{color: #900;
        }
     |     |
     |     declaration
     selector
                         

     .subHead	{font-size: 120%;
        	}
     |     		|
     |     		declaration
     class
                                              

exercise

  1. View the primary stylesheet for this tutorial. Link for non-MSIE browsers (.css) - View the MSIE stylesheet for this tutorial. Link for MSIE browsers (.txt - MSIE will not render a CSS file)


resources

next previous PDF print home