Re: color: how to specify an area of?

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;
   }
</STYLE>

<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)

Christian

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