W3C home > Mailing lists > Public > www-style@w3.org > October 2002

Re: color: how to specify an area of?

From: C. Bottelier <c.bottelier@ITsec.nl>
Date: Sun, 20 Oct 2002 20:41:38 +0200
Message-Id: <>
To: Jonathan Chetwynd <j.chetwynd@btinternet.com>, www-style@w3.org

At 19:39 20-10-02, Jonathan Chetwynd wrote:
>Is there a recognised or correct way to display an area of color, using css?
>if not, is one planned, and if not why not, this is plain weird.

If you would have an rectangular area filled with a specific color
one could use the following.

<STYLE type="text/css">
   .purple {
     padding : 1em 1.5em 1em 1.5em;
     background-color: #990099;

<p>This line should contain a purple <span title="Purple area" 
class="purple"></span> rectangle.

Note here that the title="" causes a tooltip when the mouse is
over the area. (Nice when colours are supressed)

Received on Sunday, 20 October 2002 14:34:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC