CSS: Difference between revisions
m (using an external editor) |
m (using an external editor) |
||
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 == | ||
=== | === 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. | |||
* [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) | ||
=== 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] | ||
=== Font compatibilty === | === Font compatibilty === |
Revision as of 16:44, 10 October 2007
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
- W3C validator (W3C) download and on-line). This only works with W3C vocabularies, e.g. not with your own XML.
- WDG CSSCheck
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
- CSS Properties Good summaries from the Web Design Group
- Mozilla/Opera sidebars from Zvon (work sort of with firefox )
- CSS contents and browser compatibility at quirksmode.org. Good. Also has stuff on DOM compatibility
- Web Devout, good Web Browser CSS support. Good !
- Index DOT Css (ok, but outdated)
Made at TECFA
General Tutorials
(see also the Links section, maybe looking at examples will get you there faster !)
- Adding a touch of style by David Raggett, nice tutorial for the masses
- Fixing your site with the right DocType. "List a Part" article for a related, but important subject !
- Chapter 20: CSS chapter 20 of the book Cascading Style Sheets, designing for the Web, by H�kon Wium Lie and Bert Bos.
- Introduction to CSS (includes an XML CSS short tutorial).
- CSS FLoats Part I (should work with Mozilla, for others see part 2 (from Webreference's HTML with style tutorials section)
- A List Apart CSS hacks (since issue 100 this famous on-line mag uses strict W3C complicant code ... and they still let you see style-less contents with old browsers).
- Flexible Layouts, good A List Apart story (nov 2002)
- Evolution of a Home webreference article showing how they could rebuild their home page without tables for all 5 browsers.
- Advanced CSS Layouts, WebReference.com tutorial by R.V Lizaola & A.King
- CSS in the Real World. Lecture notes from Zeldmann
- Writing Lean CSS at OrderedList (9/2004). Use cascades and regroup selectors, etc.
Page Layout
Design without tables, CSS Positioning, etc.
- HTML Utopia: Chapter 5: Building the Skeleton by Dan Shafer (extract of chap 5 of the "Designing Without Tables" book)
- CSS Positioning Good and clean CSS tutorial (look at the source of the pages !)
- Tutorial 19: CSS Positioning, Part II webreference article
- The Layout Reservoir Good 2 and 3 colum designs !
- CSS Layout Techniques: for Fun and Profit
- Boxes from thenoodleincident.com. Nice examples !
- S5 is a slide show format based entirely on XHTML, CSS, and JavaScript. With one file, you can run a complete slide show and have a printer-friendly version as well
CSS with XML
- On Display: XML Web Pages with Mozilla by Simon St.Laurent
Client-side style-sheets
Wow !
- The CSS Anarchist's Cookbook by Eric Meyer, O'Reilly
- Tap the Power of Mozilla's User Style Sheets
Font compatibilty
- Why Windows Web Pages Have Tiny Text
- Beyond the FONT tag: Practical HTML text styling by Todd Fahrner
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