CSS - I colori CSS -As cores CSS - Die Farben CSS - Les couleurs CSS: Colores CSS

Colours

The CSS standard offers different ways to define colours:

Applying a colour with its name

HTML has names set for a limited number of colours (see HTML colours). The number of colours offered by HTML is not sufficient for every need; however, it may be practical to invoke colours using their name when they are standard colours.

The CSS standard includes the 16 basic colours defined by HTML 4.01, and adds orange. The list of colours available in CSS is:

aqua green orange white
black lime purple yellow
blue maroon red  
fuschia navy silver  
gray olive teal  

So to set level-1 headers as blue, simply add a CSS rule such as the following:

h1 {color: blue}

Browsers actually support more than 140 colour names, but at present, they are not all part of the CSS standard.

RGB code in hexadecimal notation

More than 16 million colours can be defined by specifying a colour's RGB values using the notation #RRGGBB, drawn from HTML, where RR, GG and BB each represent a hexadecimal number between 00 and FF for Red, Green, and Blue, respectively.

Here is the same declaration as above, with hex notation:

h1 {color: #0000FF}

RGB code in decimal notation

CSS also defines a "functional" RGB notation, which is used to set red, green, and blue values by indicating their relative proportions as a percentage or as positive integers (each value can be an integer between 0 and 255), with either of the following syntaxes:

rgb(100%,100%,100%)
rgb(24,125,255)


Last update on Thursday October 16, 2008 02:43:13 PM.This document entitled « CSS - Colours » 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 Colours » in :
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...
The Colour Table Show Coding colours In HTML, colours are defined by three hexadecimal numbers, which represent the Red, Green, and Blue tones (using RGB coding) of the chosen colour. This is the syntax for coding a colour in HTML: color="#RRGGBB" RR, GG and BB each...
Style syntax (CSS) Show Defining 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...
Colouring cells on conditions ShowColouring cells on conditions There are many pratical functions under Excel which is not commonly used. Example: If you wish a cell automatically turns red (or other formatting border, frame etc) under one condition: a result, a...
Change the appearance of the cursor in CSS ShowChance the appearance of yhe cursor with CSS The cursor property allow you to change the appearance of the cursor on an element of a web page. The client will automatically display the cursor on his computer that matches the type of...
Remove the underline under the links in HTML/CSS ShowRemove the underline under the links in HTML/CSS Using CSS Using CSS via a class Using CSS online AS you may have noticed, hyperlinks are underlined in HTML (by default) It is possible to remove the underline by using the CSS Using...
Download Steam ShowSteam is a download agent of on line games permitting to buy and to download them. Compared with the classical installation from a CD or DVD, this method has many advantages. In particular, it removes the problems of : - media (scratches, damaged...
Download Lexmark x1190 Printer Driver ShowThe Lexmark X1190 offers 4800 x 1200 dots per inch (dpi) resolution colour on photo paper in best mode, allowing consumers to produce photo-quality pictures. The flexible flatbed scanner is designed to handle books, reports and photographs....
CSS - Style sheets ShowIntroduction 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...
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...