Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / December 2004



Tip: Looking for answers? Try searching our database.

What's with three letter colours now?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Big Bill - 29 Dec 2004 23:34 GMT
as opposed to six letter colours?

I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?

BB
--
www.kruse.co.uk SEO@kruse.demon.co.uk
        home of SEO that's shiny!
--
Paul - 29 Dec 2004 23:45 GMT
> as opposed to six letter colours?
>
> I'm seeing body {color: #fff; background: #000;} and stuff lately.
> Is this a new form of abbreviation?

New? Hasn't it always been part of the css specification?
C A Upsdell - 30 Dec 2004 00:34 GMT
>> as opposed to six letter colours?
>>
>> I'm seeing body {color: #fff; background: #000;} and stuff lately. Is
>> this a new form of abbreviation?
>
> New? Hasn't it always been part of the css specification?

Part of the HTML spec too.  But beware:  some old browsers can't handle
the 3-digit colours.
Bjoern Hoehrmann - 30 Dec 2004 00:56 GMT
* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
>>> I'm seeing body {color: #fff; background: #000;} and stuff lately. Is
>>> this a new form of abbreviation?
[quoted text clipped - 3 lines]
>Part of the HTML spec too.  But beware:  some old browsers can't handle
>the 3-digit colours.

Which HTML spec (and according to which section in that spec?)
Signature

Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

C A Upsdell - 30 Dec 2004 01:16 GMT
> * C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
>
[quoted text clipped - 7 lines]
>
> Which HTML spec (and according to which section in that spec?)

Y'know, I took a look at both the HTML 4.01 and CSS 2 specs.  The HTML
spec says nothing about the length of a hex colour code;  the CSS spec
says that the code can be either 3 or 6 digits.  So I'm not sure what
this means:  does this mean that the HTML spec can take colour codes of
indefinite length:  I could find nothing in the spec to either affirm or
refute this.
Bjoern Hoehrmann - 30 Dec 2004 02:03 GMT
* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
>>>Part of the HTML spec too.  But beware:  some old browsers can't handle
>>>the 3-digit colours.
[quoted text clipped - 7 lines]
>indefinite length:  I could find nothing in the spec to either affirm or
>refute this.

It means it is not defined... Please write to www-html-editor@w3.org to
report errors in the HTML/XHTML specifications.
Signature

Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Jan Roland Eriksson - 30 Dec 2004 11:16 GMT
>* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
>>>>Part of the HTML spec too.  But beware:  some old browsers can't handle
>>>>the 3-digit colours.

>>> Which HTML spec (and according to which section in that spec?)

>>Y'know, I took a look at both the HTML 4.01 and CSS 2 specs.  The HTML
>>spec says nothing about the length of a hex colour code;  the CSS spec
>>says that the code can be either 3 or 6 digits.  So I'm not sure what
>>this means:...

>It means it is not defined... Please write to www-html-editor@w3.org to
>report errors in the HTML/XHTML specifications.

And since when is a "color" information of interest in a markup
language?

Signature

Rex

Paul - 30 Dec 2004 06:31 GMT
<snip>

> Y'know, I took a look at both the HTML 4.01 and CSS 2 specs.  The HTML
> spec says nothing about the length of a hex colour code;  the CSS spec
> says that the code can be either 3 or 6 digits.

http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-color

  So I'm not sure what
> this means:  does this mean that the HTML spec can take colour codes of
> indefinite length:  I could find nothing in the spec to either affirm or
> refute this.

"A color value may either be a hexadecimal number (prefixed by a hash
mark) or one of the following sixteen color names."

So if 3-digit codes work in html, it is a browser "feature". Since the
color attribute is being deprecated this discussion is irrelevant.

Paul
Stan Brown - 30 Dec 2004 01:38 GMT
"C A Upsdell" wrote in comp.infosystems.www.authoring.stylesheets:
>But beware:  some old browsers can't handle
>the 3-digit colours.

Which?

Signature

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
                                 http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator:      http://validator.w3.org/
CSS 2.1 spec:   http://www.w3.org/TR/CSS21/
validator:      http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
   http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Bjoern Hoehrmann - 29 Dec 2004 23:46 GMT
* Big Bill wrote in comp.infosystems.www.authoring.stylesheets:
>I'm seeing body {color: #fff; background: #000;} and stuff lately.
>Is this a new form of abbreviation?

http://www.w3.org/TR/CSS1#color-units
http://www.w3.org/TR/CSS2/syndata.html#color-units
http://www.w3.org/TR/CSS21/syndata.html#color-units
http://www.w3.org/TR/css3-color/#numerical
Signature

Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Stan Brown - 30 Dec 2004 01:37 GMT
"Big Bill" wrote in comp.infosystems.www.authoring.stylesheets:
>as opposed to six letter colours?
>
>I'm seeing body {color: #fff; background: #000;} and stuff lately.
>Is this a new form of abbreviation?

Yes, it was introduced only about ten years ago. :-)

Signature

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
                                 http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator:      http://validator.w3.org/
CSS 2.1 spec:   http://www.w3.org/TR/CSS21/
validator:      http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
   http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Big Bill - 30 Dec 2004 08:17 GMT
>"Big Bill" wrote in comp.infosystems.www.authoring.stylesheets:
>>as opposed to six letter colours?
[quoted text clipped - 3 lines]
>
>Yes, it was introduced only about ten years ago. :-)

Well I can't keep up with everything!
I ask as only a day or so ago I saw it for the firest time and as luck
would have it saw it twice.

BB
--
www.kruse.co.uk SEO@kruse.demon.co.uk
        home of SEO that's shiny!
--
Dr John Stockton - 30 Dec 2004 12:30 GMT
JRS:  In article <udf6t01g41o7oujj52unrl91vtmkpadta8@4ax.com>, dated
Wed, 29 Dec 2004 23:34:32, seen in news:comp.infosystems.www.authoring.s
tylesheets, Big Bill <kruse@cityscape.co.uk> posted :

>Subject: What's with three letter colours now?

>as opposed to six letter colours?
>
>I'm seeing body {color: #fff; background: #000;} and stuff lately.
>Is this a new form of abbreviation?

(1) The body of a News article should be related to, but not dependent
on, the Subject line.

(2) I note that others have, while being keen to score points, not
provided an explanation.  So see

       Cascading Style Sheets, level 1
       W3C Recommendation 17 Dec 1996
       http://www.w3.org/pub/WWW/TR/REC-CSS1

which includes :-

6.3    Color units

...

The format of an RGB value in hexadecimal notation is a '#' immediately
followed by either three or six hexadecimal characters. The three-digit
RGB notation (#rgb) is converted into six-digit form (#rrggbb) by
replicating digits, not by adding zeros. For example, #fb0 expands to
#ffbb00. This makes sure that white (#ffffff) can be specified with the
short notation (#fff) and removes any dependencies on the color depth of
the display.

Signature

© John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   IE 4 ©
<URL:http://www.jibbering.com/faq/>  JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.