U of S | DCS | Courses | CAI | CSS | Style Definitions

[Back] [Contents] [Next]


Define the Styles


The appearance of an item in a Cascading Style Sheet is defined by a property, followed by a ":", followed by a value for that property. Several of these pairs can be listed, separated by a semi-colon (";").

For example, to get navy text in a sans-serif font the definition is:

color:navy; font-family:sans-serif

There are properties for character appearance, paragraph alignment, page colors, background images, borders, text placement and more. See the Index DOT CSS reference for more details.


Please send comments about this course to Kevin.Lowey@Usask.CA