473,544 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?

BB
--
www.kruse.co.uk SE*@kruse.demon .co.uk
home of SEO that's shiny!
--
Jul 21 '05 #1
12 16059
* Big Bill wrote in comp.infosystem s.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
--
Björn Höhrmann · mailto:bj****@h oehrmann.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/
Jul 21 '05 #2
Big Bill wrote:
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?
Jul 21 '05 #3
Paul wrote:
Big Bill wrote:
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.

Jul 21 '05 #4
* C A Upsdell wrote in comp.infosystem s.www.authoring.stylesheets:
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.


Which HTML spec (and according to which section in that spec?)
--
Björn Höhrmann · mailto:bj****@h oehrmann.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/
Jul 21 '05 #5
Bjoern Hoehrmann wrote:
* C A Upsdell wrote in comp.infosystem s.www.authoring.stylesheets:
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.

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.

Jul 21 '05 #6
"Big Bill" wrote in comp.infosystem s.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. :-)

--
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/200..._wont_help_you
Jul 21 '05 #7
"C A Upsdell" wrote in comp.infosystem s.www.authoring.stylesheets:
But beware: some old browsers can't handle
the 3-digit colours.


Which?

--
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/200..._wont_help_you
Jul 21 '05 #8
* C A Upsdell wrote in comp.infosystem s.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: 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.


It means it is not defined... Please write to ww************* @w3.org to
report errors in the HTML/XHTML specifications.
--
Björn Höhrmann · mailto:bj****@h oehrmann.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/
Jul 21 '05 #9
C A Upsdell > wrote:
<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-html40...tml#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
Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

86
7686
by: Michael Kalina | last post by:
Because when I asked for comments on my site-design (Remember? My site, your opinion!) some of you told me never to change anything on font-sizes! What do you guys think of that: http://www.clagnut.com/blog/348/ I hope that's going to be a good discussion! Michael
4
3944
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to appropriate alt text, anyone viewing the page with images turned off, will see the alt text instead, and on hover will see the popups.
6
3970
by: Fungii | last post by:
Hello, I have a stylesheet that sets p:first-letter to a certain size and colour. I was playing around with Javascript to change paragraph stylesheets using an array like this: var paras = document.all.tags("P"); Although I can change the paragraph colours using this array, the first letter of all the paragraphs remain the same
8
2239
by: Doug Laidlaw | last post by:
I tried to grab an image from a Web page the other day. It turned out that the page was made up of three horizontal bands, and part of the image was in each. One band was a JPEG, another was a GIF and I have forgotten what the main page was. Apart from lining up the parts of the image, there was no discrepancy in colours between the two...
4
3601
by: Tim Marshall | last post by:
The report indicated in the send object command below has various colours in it which show nicely when the report is previewed and printed. However, when sent as an attachment to users without Access as per the statement below, no colours are displyed: DoCmd.SendObject acSendReport, "rptSideDetails", acFormatHTML, _ Me.txtAddress, "", ,...
4
1872
by: Harro de Jong | last post by:
(absolute beginner here, sorry if this seems basic) Section 7.10 of 'How to Think Like a Computer Scientist' contains this discussion of string.find and other string functions: (quote) We can use these constants and find to classify characters. For example, if find(lowercase, ch) returns a value other than -1, then ch must be lowercase: ...
4
6401
by: Michael Meckelein | last post by:
Hello, Wondering, if C# (framework 2.0) does not support parsing DateTime timezones in three letter acronyms. I would like to parse date strings like "2005 Nov 01 11:58:47.490 CST -6:00" but it seems C# does not support the timezone letters (CST). I suppose to use the symbol ZZZ for the timezone letters, but MSDE pointed out that it is...
31
1991
by: anon856525 | last post by:
Hello I am seeking the best way (speed and portability) to program mode 13h (320 x 200 256 colors), and mode X. I am using Borland's Turbo C ver 3.0 for MS DOS. With Borland product, I can not find a BGI driver for this mode. I know there are built in support for the other VGA modes (640 x 200 x 16 colors), (640 x 350 x 16 colors).. but...
5
4024
by: Jameson | last post by:
Hi, I have a list of known colours, generated using: Dim colorNames As New System.Collections.Generic.List(Of String) For Each known As KnownColor In .GetValues(GetType(KnownColor)) Dim specific As Color = Color.FromKnownColor(known)
0
7376
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5935
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5310
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3433
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1851
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
997
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.