Flux rss

CSS - Colours

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.

Results for

COLOUR SHADING Hello, i need a macro for below conditions. A specific row colour should be changed to say blue if there is a word blue in any cell in that row. likewise for yello,green,red,purple,blue. Thanks Rahul en.kioskea.net/forum/affich-25847-colour-shading
HTML - Colour Table 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 represent a... en.kioskea.net/html/htmlcouleurs.php3
Video and digital imaging - Digital representation of colour In order to be able to handle colours correctly and to exchange colorimetric information it is necessary to have the means to categorize them and to choose them. Thus, it is not uncommon to have the choice of the colour of a product before it is... en.kioskea.net/video/couleur.php3

Results for

Create CSS easilyCreate 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... en.kioskea.net/faq/sujet-593-create-css-easily
How to create your own WebsiteHow to create your own Website What is HTML? Example 1: HTML Tags HTML Elements Basic HTML Tags to Remember Example 2 HTML Attributes and Values Example 3 Colour Tags Example 4 Text Formatting Example 5 HTML Division Tags Example... en.kioskea.net/faq/sujet-173-how-to-create-your-own-website
Major difference between “display: none” and “visibility: Major difference between “display: none” and “visibility: hidden” There are two attributes that you can use in your webpage, using CSS, to hide the display command in a web browser of an element that has been added in a CSS... en.kioskea.net/faq/sujet-791-major-difference-between-a-display-nonea-and-a-visibility

Results for

"Trojan.Win32.BHO.agz" / "Csseqch.Hello, I have a big problem: (I have a horse troie "Csseqch.dll" but impossible to turn pourait if someone give me a little hand ... Please I am in my Xp and AV is Kapersky;) ToM Requirements: Windows XP Internet Explorer 7.0 en.kioskea.net/forum/affich-377-trojan-win32-bho-agz-csseqch
Conditional Formatting (more than 3) in ExcelHello, i am trying to apply more than three options to excel that changes the background colour of the cell. my range is R7:R1000 i need a VBA or macro that will change the background colour of the cell as follows if cell reads "Extreme", change... en.kioskea.net/forum/affich-21716-conditional-formatting-more-than-3-in-excel
Conditional FormattingI need to specify different text colours for certain conditions. This I can do with the conditional formatting but only for three conditions, I have tried to write some VBA code to allow me to call two or more routines to get more conditions The code... en.kioskea.net/forum/affich-26380-conditional-formatting

Results for

Download Colour SpyWith "Colour Spy", you will be able to choose any color on any window shown in the screen and to transform it into hexadecimal code, what is very practical to assure a well-blended of picture on the bottom of a Web page.Endowed with a simple interface... en.kioskea.net/telecharger/telecharger-779-colour-spy
Download Lexmark x1190 Printer DriverThe 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.... en.kioskea.net/telecharger/telecharger-894-lexmark-x1190-printer-driver
Download DVDSmith Movie BackupDVDSmith Movie Backup is the best manner of copying your DVD on your hard disk in a split second and with the slightest effort.Allow you to abolish all hanging protection copy it such as CSS, RC, RCE, APS, UOPs and Sony ArccOS. Program creates a clone... en.kioskea.net/telecharger/telecharger-615-dvdsmith-movie-backup

Results for

CSS - Units DIV tags define blocks of elements This is a structure created to define boxes such as menus or windows. CSS offers several properties for specifying the characteristics of margins. With a good working knowledge of these properties, you can create... en.kioskea.net/css/css-bordures-boites.php3
CSS - 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 recommendations used by the... en.kioskea.net/css/cssimplant.php3
CSS - Style syntax 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 style declaration,... en.kioskea.net/css/csssyntax.php3