Table of CCS items: http://webreview.com/pub/guides/style/style.html
Drafted:
4/26/00;
5/3/00
Currently
being created!
COSC 330
LEARNING MODULE
VIII
CONTROLLING STYLE
IN WEB PAGES
(CASCADING STYLE
SHEETS)
The
style
(e.g.
fonts, colors, spacing, etc) of the text displayed on a browser is governed
by a wide variety of sources (the user, the browser, the Web page author,
and the Web site designer). The style actually displayed is determined
by the source
with the highest priority. Cascading Style Sheets (CSS), which occupy
the middle level in this priority hierarchy, are an efficient way to define
a default control for the style of blocks of text all
the way up to a whole Web site. You should
already be familiar with how the user, the browser, and the author can
contol styles, so, after a brief review of these other style control mechanisms,
this
LM focuses on CCS. ....
CSS, along with HTML and JavaScript,
is one of the key components of DHTML (dynamic HTML) which is covered
in LM IX. Therefore, we will revisit these three methodologies
(HTML, CCS, and JavaScript) in the next LM where we will see how they complement
each other in the single, powerful DHTML approach. ...CCS are sponsered
by the W3C, whose primary sourse is:
http://www.w3.org/Style/
(
This page is
as far as assessment goes.)
See
the Study Guide for this learning module.
The Objectives of this learning module are to:
This
LM covers the same content as Chapter 23 in Niederst, Web
Design in a Nutshell, but modifies this
in order to better associate related techniques. The sequence of presentations
in this learning module is as follows. You can click on any
link to jump directly to that section.
1. WAYS TO CONTROL
THE STYLE OF WEB PAGES:
SAQ:
An
list of the new elements (selectors, properties, font descripters,
pseudo-selectors, functions, and values) in CSS2 is given in Neiderst,
pp. 423-425. The most important of the associated
new features are summarized in the following subsections.
5. CSS TIPS, TRICKS, AND WORKAROUNDS: