Course Technology logoCourse Technology
Appendix F

*
 Online 
    Companion 
 Home 

directory folder
Documents 

 HTML: 
 Tutorial 1 
 Tutorial 2 
 Tutorial 3 
 Tutorial 4 
 Tutorial 5 
 Tutorial 6 
 Tutorial 7 
 Tutorial 8 
 Tutorial 9 
 Tutorial 10 


DHTML: 
 Tutorial 1 
 Tutorial 2 
 Tutorial 3 
 Tutorial 4 
 Tutorial 5 


directory folder
Gallery 

directory folder
Software 


directory folder
Data Files 


directory folder
Reference: 

HTML Tags 

 Appendix D: 
 JavaScript 
 Objects, 
 Properties, 
 Methods, 
 Event 
 Handlers 

 Appendix E: 
JavaScript 
 Operators, 
 Elements, 
 Keywords 
  
 Appendix F: 
 Cascading 
 Style Sheets 



Web Pages and HTML icon

Online Companion Home * Appendix F: Main 
spacer

Appendix F
Cascading Style Sheets:
Selectors, Units, Atrributes and Values


The following displays the selectors, units, and attributes supported by CSS and the two major browsers. Additional information about CSS and browser support for current CSS standards can be found at the following Web sites:

http://www.w3.org

http://www.webreview.com

http://home.cnet.com/webbuilding/0-3880.html

Since the World Wide Web changes constantly, you should test this information against current browsers.



Selectors

The general form of a style declaration is:

selector {attribute1:value1; attribute2:value2; ...}

Selectors indicate which element or elements in the document are affected by the style declaration. Selectors can take many different forms. The following table shows some of the different forms that a selector can take.


SelectorsDescriptionCSSIENetscape
*All elements in the document

2.0



E

An element, E, in the document

1.0

3.0

4.0

E1, E2, E3, ...

A group of elements, E1, E2, E3, ... in the document

1.0

3.0

4.0

E1 E2

An element, E2, that is contained within the parent element E1

1.0

3.0

4.0

E1 > E2

An element, E2, that is the direct descendant (child) of a parent element

2.0



E1+E2

An element, E2, that directly follows the element, E

2.0



#id

An element with the ID name id

1.0

3.0

4.0

E.class

An element, E, with the class name class

1.0

3.0

4.0

.class

Any element with the class name class

1.0

3.0

4.0

E[attribute]

An element, E, that contains a specified attribute

2.0



E[attribute=value]

An element, E, that contains a specified attributewith a specified value

2.0



E[attribute~=value]

An element, E, that contains a specified attribute, with part of a specified value

2.0



To the top



*Online Companion Home  
*Software  *Gallery  directory folderData Files  
*Documents: HTML: Tutorial 1 | Tutorial 2 | Tutorial 3 | Tutorial 4
Tutorial 5 | Tutorial 6 | Tutorial 7 | Tutorial 8 | Tutorial 9 | Tutorial 10
DHTML: Tutorial 1 | Tutorial 2 | Tutorial 3 | Tutorial 4 | Tutorial 5

*Reference:  HTML Tags, Properties | Appendix D:Web Pages and HTML icon
JavaScript Objects, Properties, Methods, Event Handlers
Appendix E:  JavaScript Operators, Elements, Keywords
Appendix F:  Cascading Style Sheets

To the top

*
Website design by SKDesigns.Course Technology © 2000*
*