CSS: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
== Definition ==
== Definition ==


CSS is a style sheet mechanism that allows authors and readers to attach style (e.g. fonts, colors and spacing) to HTML documents. The CSS language is human readable and writable, and expresses style in common desktop publishing terminology. One of the fundamental features of CSS is that style sheets cascade; authors can attach a preferred style sheet, while the reader may have a personal style sheet to adjust for human or technological handicaps. There are rules for resolving conflicts between different style sheets. With the help of some JavaScript code one also may offer several stylesheets to an enduser. Finally CSS is an important component in so called "DHTML" and [[AJAX]]. Programming Dynamic Web pages may involve dynamic change of CSS features.


This page is just a quick copy/paste from my old
http://tecfa.unige.ch/guides/css/pointers.html So far it only got links ... - [[User:Daniel K. Schneider|Daniel K. Schneider]]


== Tools / Software ==
== Tools / Software ==


* [http://www.bradsoft.com/download/ TopStyle Lite]
=== On-line validation tools ===
 
* [http://jigsaw.w3.org/css-validator W3C validator] (W3C) download and [http://jigsaw.w3.org/css-validator/validator-uri.html on-line]). This only works with W3C vocabularies, e.g. not with your own XML.
* [http://www.htmlhelp.com/tools/csscheck/ WDG CSSCheck]
 
=== Editors ===
 
* [http://www.bradsoft.com/download/ TopStyle Lite] ([http://www.newsgator.com/Individuals/TopStyle/Default.aspx direct link]).
 
=== Browser plugins and Bookmarklets ===
 
* [https://addons.mozilla.org/en-US/firefox/search?q=css+validator&status=4 CSS validator] Michel Langley's Firefox add-on (sends the page to the W3C validator).
 
* [http://westciv.com/xray/ XRAY] is a bookmarklet for IE, Mozilla/Firefox and Safari. Use it to see the box model for any
* [http://westciv.com/xray/ XRAY] is a bookmarklet for IE, Mozilla/Firefox and Safari. Use it to see the box model for any
element on any Web page.
element on any Web page.
Line 13: Line 28:
== Documentation ==
== Documentation ==


=== Validation ===
=== Specifications ===


* [http://jigsaw.w3.org/css-validator W3C validator] (download and [http://jigsaw.w3.org/css-validator/validator-uri.html on-line]). This only works with W3C vocabularies, e.g. not with your own XML.
When you are in doubt proceed first with an [http://jigsaw.w3.org/css-validator on-line validation], then check bug-lists, e.g. [http://www.richinstyle.com/bugs/ RichInStyle's] or another pick form the [http://www.w3.org/Style/CSS/#browsers list] at W3C.
* [http://www.htmlhelp.com/tools/csscheck/ WDG CSSCheck] (this validates the CSS file !)
 
* [http://www.w3.org/TR/REC-CSS1 Cascading Style Sheets, level 1]
* [http://www.w3.org/TR/REC-CSS2/ Cascading Style Sheets, level 2]


=== Manuals, short references and implementation charts ===
=== Manuals, short references and implementation charts ===
Line 26: Line 43:
* [http://www.blooberry.com/indexdot/css/ Index DOT Css] (ok, but outdated)
* [http://www.blooberry.com/indexdot/css/ Index DOT Css] (ok, but outdated)


=== Specifications ===


When you are in doubt proceed first with an [http://jigsaw.w3.org/css-validator on-line validation], then check bug-lists, e.g. [http://www.richinstyle.com/bugs/ RichInStyle's] or another pick form the [http://www.w3.org/Style/CSS/#browsers list] at W3C.
* [http://www.w3.org/TR/REC-CSS1 Cascading Style Sheets, level 1]
* [http://www.w3.org/TR/REC-CSS2/ Cascading Style Sheets, level 2]


=== Made at TECFA ===
=== Made at TECFA ===
Line 77: Line 89:
* [http://www.oreillynet.com/pub/a/network/2000/07/21/magazine/css_anarchist.html The CSS Anarchist's Cookbook] by Eric Meyer, O'Reilly
* [http://www.oreillynet.com/pub/a/network/2000/07/21/magazine/css_anarchist.html The CSS Anarchist's Cookbook] by Eric Meyer, O'Reilly
* [http://www.oreillynet.com/pub/a/network/2000/06/30/magazine/mozilla_stylesheets.html Tap the Power of Mozilla's User Style Sheets]
* [http://www.oreillynet.com/pub/a/network/2000/06/30/magazine/mozilla_stylesheets.html Tap the Power of Mozilla's User Style Sheets]
=== DHTML ===
... not sure I want to keep this topic here.
* [http://developer.netscape.com/library/documentation/communicator/dynhtml/index.htm Dynamic HTML in Netscape Communicator]


=== Font compatibilty ===
=== Font compatibilty ===

Revision as of 17:44, 10 October 2007

Draft

Definition

CSS is a style sheet mechanism that allows authors and readers to attach style (e.g. fonts, colors and spacing) to HTML documents. The CSS language is human readable and writable, and expresses style in common desktop publishing terminology. One of the fundamental features of CSS is that style sheets cascade; authors can attach a preferred style sheet, while the reader may have a personal style sheet to adjust for human or technological handicaps. There are rules for resolving conflicts between different style sheets. With the help of some JavaScript code one also may offer several stylesheets to an enduser. Finally CSS is an important component in so called "DHTML" and AJAX. Programming Dynamic Web pages may involve dynamic change of CSS features.

This page is just a quick copy/paste from my old http://tecfa.unige.ch/guides/css/pointers.html So far it only got links ... - Daniel K. Schneider

Tools / Software

On-line validation tools

Editors

Browser plugins and Bookmarklets

  • CSS validator Michel Langley's Firefox add-on (sends the page to the W3C validator).
  • XRAY is a bookmarklet for IE, Mozilla/Firefox and Safari. Use it to see the box model for any

element on any Web page.

Documentation

Specifications

When you are in doubt proceed first with an on-line validation, then check bug-lists, e.g. RichInStyle's or another pick form the list at W3C.

Manuals, short references and implementation charts


Made at TECFA

General Tutorials

(see also the Links section, maybe looking at examples will get you there faster !)

Page Layout

Design without tables, CSS Positioning, etc.

CSS with XML

Client-side style-sheets

Wow !

Font compatibilty

Links

  • CSS Page at W3C, see also Style. Specifications plus some good ressources links.
  • *** Zen Garden, The Beauty of CSS Design. This allows you to load various great CSS designs of into the page (which then radically changes its appearence (recommended, over 400 designs !).
  • CCVault This site has a nice gallery and various good links to other resources (tutorials and examples that are worth a visit).
  • css/Edge. This is another good site for advanced CSS: "The goal here is to find ways to make CSS live up to its fullest potential, with only minimal regard to browser limitations" (own examples good pointers)
  • Position is Everything Quote: "we're Big John and Holly Bergevin, and together we built this site to explain some obtuse CSS bugs in modern browsers, provide demo examples of interesting CSS behaviors, and show how to 'make it work' without using tables for layout purposes."
  • CSS Layout Techniques: for Fun and Profit, CSS notes for the Eric Costello's Glish.com
  • House of Style Tutorials and Guides (also sell the Style Master software)
  • DHTML Links (good CSS pointers)
  • Cascading Style Sheets (good list of links at WebReference.com)
  • Web Content Articles at Apple's Developper connection has some CSS articles and Safari information