Fogli di stile - CSS Folhas de estilo - CSS Stylesheets - CSS Feuilles de style - CSS CSS: Hojas de estilo

Introduction to style sheets

The concept of style sheets first appeared in 1996 when the W3C published a new recommendation entitled "Cascading Style Sheets", or CSS for short.

The principle behind style sheets involves using a single document to store the page layout characteristics associated with groups of elements. All it entails is defining by name a set of page layout definitions and characteristics, and invoking those names to apply them to a piece of text. For example, you can set your section titles to all show up in Arial font, coloured green, in italics.

Style sheets were developed in order to compensate for the shortcomings of HTML when it comes to page layout and design. HTML does have a number of tags for modifying layouts and defining text styles, but every element has its own style, independent of the surrounding elements. Using style sheets, whenever the look of a site containing hundreds of web pages needs to be changed, all that is required is to edit the style sheet definitions in one place to change the appearance of the entire site!

They are called "Cascading Style Sheets" because you can define multiple sheets, and the styles can all be applied to the pages (with a predefined system for resolving conflicts).

Style sheets can be used:

  • to achieve a uniform look throughout the site, by invoking a single style definition on every page;
  • to change one aspect throughout a website just by editing a few lines;
  • to make HTML code more readable, as styles are defined separately;
  • to let pages load more quickly, since there is less HTML on each page;
  • to position page elements in a more uniform manner.

CSS 2.0

Since 12 May 1998, the standard CSS 2.0 has been the standard in effect. CSS2 adds many new features to the preceding standard (1.0), including:

  • Consideration for how a document will be rendered by different media (such as a screen, a printer, braille, voice synthesisers, etc.);
  • Adding sound features for the blind and visually impaired;
  • Manipulating cursors;
  • Managing overflow and element visibility

Browser compatibility

Despite the W3C's recommendations, all browsers do not render style sheets the same way. The earliest browser to have integrated style sheets was Microsoft Internet Explorer 3.0, and the use of style sheets become more widespread with versions 4.0 and higher of Internet Explorer and Netscape Navigator.

Browsers which support style sheets:

  • Microsoft Internet Explorer 3.0 (partially)
  • Microsoft Internet Explorer 4.x
  • Microsoft Internet Explorer 5.x
  • Microsoft Internet Explorer 6.x
  • Netscape Navigator 4.x
  • Netscape Navigator 6.x
  • Netscape Navigator 7.x
  • Mozilla x.x
  • Firefox x.x
  • Opera 5.x
  • Opera 6.x
  • Opera 7.x
  • Camino 0.8x
  • Safari 1.xx

See also

The website ZenGarden shows the power of style sheets by allowing you to choose different styles to apply to the same content.

Last update on Thursday October 16, 2008 02:43:13 PM.This document entitled « CSS - Style sheets » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « CSS Style sheets » in :
CSS - Style sheets Show Font properties Property Value Description font-family Specific font (Arial, Times, Verdana) Familly (serif, sans-serif, fantasy, monospace, cursive) Defines one or more font names or font families. If multiple fonts are defined,...
Declaring a style sheet (CSS) Show Declaring a style sheet Style sheets are not directly integrated into the W3C's HTML recommendations. For this reason, you need to include elements in the HTML code indicating both the type of document, meaning the version of the HTML and CSS...
Units in style sheets (CSS) Show Units With style sheets, you can use numeric values to set style properties in multiple ways: absolutely, meaning in units which are independent of the form of output (such as in centimetres); relatively, meaning in units relative to an element....
Create CSS easily ShowCreate CSS easily Easy links CSS is a short term for Cascading Style Sheets. CSS is used to alter the display of the HTML coded environment. For example, using CSS can change the appearance of your scroll bar, the color, headings...
Filtering Apache logs / conditional Logging ShowFiltering Apache logs / conditional Logging Log-ins used by Apache Web server is usually very wordy, they contain all type of information (image files, style sheets, javascript, son RSS, etc.) This can be very troublesome when trying to...
Using visual styles (themes) on Windows XP ShowUsing visual styles (themes) on Windows XP A theme in principle includes a visual style (the appearance of windows, the taskbar and menus), desktop icons, wallpaper, the mouse, and a screen saver. If Microsoft has provided the...
Download Amaya ShowAmaya is a Web editor, developed collectively by the INRIA and the W3C, to edit and publish very simply pages containing text (in HTML or XHTML), graph (in SVG) and mathematical expressions (in MathML), the whole with style sheets CSS. Amaya is a...
Download Xenu's Link Sleuth ShowXenu's Link Sleuth is a software for checking broken links to a website. Advantage The check is performed on classic links, images, frames (frames), the Plugin, wallpapers, style sheets, applets and scripts (Javascript). It displays the...
Download Vista Live Shell Pack - Pink ShowIf you want to have Vista on your computer but your shape is not rather powerful or if simply you cannot have to be paid this version yet? Then resolution is to change the appearance of your good old XP. Vista Live Shell Pack is a topic of office...
Style classes (CSS) ShowClasses and IDs Classes A web designer might want to assign different styles to the same tags. For this reason, the CSS specifications introduced the concept of classes. The definition of classes is as simple as that of styles. It involves...
Style syntax (CSS) ShowDefining a style Defining a style is done using simple text rules for describing the aspects of page elements. A CSS rule is characterised by two main elements: A type selector, for specifying which tags in the document the style applies to; A...