What is the equivalent Hex ?
What is the equivalent Hex ?
am 01.11.2007 20:24:22 von Reshma
Hello:
I am new to HTML and CSS. I came across this block of code, .link{
color:#269;
display:block;
margin:4px 0 0 0;
padding:2px 1em;
}
I am wondering what is the equivalent hex code for the color:#269 in
the above.
Thanks
Re: What is the equivalent Hex ?
am 01.11.2007 20:33:24 von Harlan Messinger
Reshma wrote:
> Hello:
>
> I am new to HTML and CSS. I came across this block of code, .link{
> color:#269;
> display:block;
> margin:4px 0 0 0;
> padding:2px 1em;
> }
>
> I am wondering what is the equivalent hex code for the color:#269 in
> the above.
A three-digit RGB code #xyz is shorthand for a six-digit hex code
#xxyyzz. So, #226699.
Re: What is the equivalent Hex ?
am 01.11.2007 20:47:38 von Animesh Kumar
Harlan Messinger wrote:
> Reshma wrote:
>> Hello:
>>
>> I am new to HTML and CSS. I came across this block of code, .link{
>> color:#269;
>> display:block;
>> margin:4px 0 0 0;
>> padding:2px 1em;
>> }
>>
>> I am wondering what is the equivalent hex code for the color:#269 in
>> the above.
>
> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> #xxyyzz. So, #226699.
Correct. Also, you can use common colors by name (typically helps in
visualizing better).
For example:
"color: black;" or "color: white;" are valid CSS properties. Modern
browsers support more such named-colors than what is officially endorsed
by W3C.
http://www.w3.org/TR/CSS21/syndata.html#color-units
Have fun,
Animesh
Re: What is the equivalent Hex ?
am 01.11.2007 21:32:17 von Reshma
On Nov 2, 12:33 am, Harlan Messinger
wrote:
> Reshma wrote:
> > Hello:
>
> > I am new to HTML and CSS. I came across this block of code, .link{
> > color:#269;
> > display:block;
> > margin:4px 0 0 0;
> > padding:2px 1em;
> > }
>
> > I am wondering what is the equivalent hex code for the color:#269 in
> > the above.
>
> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> #xxyyzz. So, #226699.
Thank You.
Re: What is the equivalent Hex ?
am 01.11.2007 22:55:30 von Blinky the Shark
Harlan Messinger wrote:
> Reshma wrote:
>> Hello:
>>
>> I am new to HTML and CSS. I came across this block of code, .link{
>> color:#269;
>> display:block;
>> margin:4px 0 0 0;
>> padding:2px 1em;
>> }
>>
>> I am wondering what is the equivalent hex code for the color:#269 in
>> the above.
>
> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> #xxyyzz. So, #226699.
I did not know that; I always use six-digit. How is browser support?
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: What is the equivalent Hex ?
am 02.11.2007 00:10:58 von Animesh Kumar
Blinky the Shark wrote:
> Harlan Messinger wrote:
>> Reshma wrote:
>>> Hello:
>>>
>>> I am new to HTML and CSS. I came across this block of code, .link{
>>> color:#269;
>>> display:block;
>>> margin:4px 0 0 0;
>>> padding:2px 1em;
>>> }
>>>
>>> I am wondering what is the equivalent hex code for the color:#269 in
>>> the above.
>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>> #xxyyzz. So, #226699.
>
> I did not know that; I always use six-digit. How is browser support?
>
Since this method is used at CSS Zen garden too, I think it will have a
good cross-browser support. Dave and Molly typically test Zen garden
designs on various browsers before publishing (or so they claim).
Re: What is the equivalent Hex ?
am 02.11.2007 00:46:26 von Bone Ur
Well bust mah britches and call me cheeky, on Thu, 01 Nov 2007 21:55:30 GMT
Blinky the Shark scribed:
>>> I am wondering what is the equivalent hex code for the color:#269 in
>>> the above.
>>
>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>> #xxyyzz. So, #226699.
>
> I did not know that; I always use six-digit. How is browser support?
....To save 3 lousy alphanumeric digits per attribute?
(I've had no trouble with any browser the few times I've done it.)
--
Bone Ur
Cavemen have formidable pheromones.
Re: What is the equivalent Hex ?
am 02.11.2007 01:13:46 von Dylan Parry
Animesh K wrote:
> Dave and Molly typically test Zen garden designs on various browsers
> before publishing (or so they claim).
When you say Molly, I presume Holzschlag; but I'm not sure about Dave...
the only one that springs to mind is Raggett. So put me out of my
misery; Who is Dave?
It's probably obvious that I never look at the Zen Garden ;)
--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk
The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Re: What is the equivalent Hex ?
am 02.11.2007 01:39:37 von Els
Dylan Parry wrote:
> Animesh K wrote:
>
>> Dave and Molly typically test Zen garden designs on various browsers
>> before publishing (or so they claim).
>
> When you say Molly, I presume Holzschlag; but I'm not sure about Dave...
> the only one that springs to mind is Raggett. So put me out of my
> misery; Who is Dave?
This is Dave:
http://www.mezzoblue.com/
(I didn't even know Molly helps him with CSS Zen Garden )
> It's probably obvious that I never look at the Zen Garden ;)
Or subscribe to Dave's blog ;-)
--
Els http://locusmeus.com/
Re: What is the equivalent Hex ?
am 02.11.2007 02:16:02 von Blinky the Shark
Bone Ur wrote:
> Well bust mah britches and call me cheeky, on Thu, 01 Nov 2007 21:55:30 GMT
> Blinky the Shark scribed:
>
>>>> I am wondering what is the equivalent hex code for the color:#269 in
>>>> the above.
>>>
>>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>>> #xxyyzz. So, #226699.
>>
>> I did not know that; I always use six-digit. How is browser support?
>
> ...To save 3 lousy alphanumeric digits per attribute?
I'll continue using six-digit codes. I just wondered about support.
> (I've had no trouble with any browser the few times I've done it.)
To save three lousy characters? ;)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: What is the equivalent Hex ?
am 02.11.2007 02:52:25 von Sparky
On Nov 1, 7:16 pm, Blinky the Shark wrote:
> Bone Ur wrote:
> > Well bust mah britches and call me cheeky, on Thu, 01 Nov 2007 21:55:30 GMT
> > Blinky the Shark scribed:
>
> >>>> I am wondering what is the equivalent hex code for the color:#269 in
> >>>> the above.
>
> >>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> >>> #xxyyzz. So, #226699.
>
> >> I did not know that; I always use six-digit. How is browser support?
>
> > ...To save 3 lousy alphanumeric digits per attribute?
>
> I'll continue using six-digit codes. I just wondered about support.
>
> > (I've had no trouble with any browser the few times I've done it.)
>
> To save three lousy characters? ;)
>
> --
> Blinky RLU 297263
> Killing all posts from Google Groups
> The Usenet Improvement Project -http://improve-usenet.org
if you are on a mac you can get the exact hex code for any color on
your screen
go to Application > utilities > DigitalColor Meter
open it and select 8 bit hex value,
then make sure the reading point is at one pixel and the you can tell
the color of each pixel
Re: What is the equivalent Hex ?
am 02.11.2007 02:59:47 von dorayme
In article
<1193968345.322905.171830@50g2000hsm.googlegroups.com>,
Sparky wrote:
> On Nov 1, 7:16 pm, Blinky the Shark wrote:
> > Bone Ur wrote:
> > > Well bust mah britches and call me cheeky, on Thu, 01 Nov 2007 21:55:30
> > > GMT
> > > Blinky the Shark scribed:
> >
> > >>>> I am wondering what is the equivalent hex code for the color:#269 in
> > >>>> the above.
> >
> > >>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
> > >>> #xxyyzz. So, #226699.
> >
> > >> I did not know that; I always use six-digit. How is browser support?
> >
> > > ...To save 3 lousy alphanumeric digits per attribute?
> >
> > I'll continue using six-digit codes. I just wondered about support.
> >
> > > (I've had no trouble with any browser the few times I've done it.)
> >
> > To save three lousy characters? ;)
3 chars multiplied by many instances adds up.
> if you are on a mac you can get the exact hex code for any color on
> your screen
> go to Application > utilities > DigitalColor Meter
> open it and select 8 bit hex value,
> then make sure the reading point is at one pixel and the you can tell
> the color of each pixel
And you can copy/paste that value, it has quotes around it which
must be removed (a nuisance... but it is better than a poke in
the eye with a burnt stick).
--
dorayme
Re: What is the equivalent Hex ?
am 02.11.2007 05:14:26 von Bone Ur
Well bust mah britches and call me cheeky, on Fri, 02 Nov 2007 01:16:02
GMT Blinky the Shark scribed:
>>>>> I am wondering what is the equivalent hex code for the color:#269
>>>>> in the above.
>>>>
>>>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>>>> #xxyyzz. So, #226699.
>>>
>>> I did not know that; I always use six-digit. How is browser
>>> support?
>>
>> ...To save 3 lousy alphanumeric digits per attribute?
>
> I'll continue using six-digit codes. I just wondered about support.
>
>> (I've had no trouble with any browser the few times I've done it.)
>
> To save three lousy characters? ;)
Strictly for experimental purposes or on those occasions when I suffered
from key finger fatigue.
--
Bone Ur
Cavemen have formidable pheromones.
Re: What is the equivalent Hex ?
am 02.11.2007 05:37:53 von dorayme
In article ,
Bone Ur wrote:
> Strictly for experimental purposes or on those occasions when I suffered
> from key finger fatigue.
What is the problem with 3 digit specs that you have ever found?
--
dorayme
Re: What is the equivalent Hex ?
am 02.11.2007 06:22:59 von Blinky the Shark
Bone Ur wrote:
> Well bust mah britches and call me cheeky, on Fri, 02 Nov 2007 01:16:02
> GMT Blinky the Shark scribed:
>
>>>>>> I am wondering what is the equivalent hex code for the color:#269
>>>>>> in the above.
>>>>>
>>>>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>>>>> #xxyyzz. So, #226699.
>>>>
>>>> I did not know that; I always use six-digit. How is browser
>>>> support?
>>>
>>> ...To save 3 lousy alphanumeric digits per attribute?
>>
>> I'll continue using six-digit codes. I just wondered about support.
>>
>>> (I've had no trouble with any browser the few times I've done it.)
>>
>> To save three lousy characters? ;)
>
> Strictly for experimental purposes or on those occasions when I suffered
> from key finger fatigue.
But of course. :)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Re: What is the equivalent Hex ?
am 02.11.2007 07:23:25 von Bone Ur
Well bust mah britches and call me cheeky, on Fri, 02 Nov 2007 04:37:53
GMT dorayme scribed:
> In article ,
> Bone Ur wrote:
>
>> Strictly for experimental purposes or on those occasions when I
>> suffered from key finger fatigue.
>
> What is the problem with 3 digit specs that you have ever found?
I don't like them because they promote sloppy coloring. Standard colors
don't have 3 groups of repeated digits; they're more like #808080 or
#c0c0c0 or even #d4d0c8. What color is #aa8844?
--
Bone Ur
Cavemen have formidable pheromones.
Re: What is the equivalent Hex ?
am 02.11.2007 08:03:29 von dorayme
In article ,
Bone Ur wrote:
> Well bust mah britches and call me cheeky, on Fri, 02 Nov 2007 04:37:53
> GMT dorayme scribed:
>
> > In article ,
> > Bone Ur wrote:
> >
> >> Strictly for experimental purposes or on those occasions when I
> >> suffered from key finger fatigue.
> >
> > What is the problem with 3 digit specs that you have ever found?
>
> I don't like them because they promote sloppy coloring. Standard colors
> don't have 3 groups of repeated digits; they're more like #808080 or
> #c0c0c0 or even #d4d0c8. What color is #aa8844?
well, I have not been following closely the context of all this
but if it were to promote such a thing then I am sure it would be
bad and you would be quite right to point this out.
But the real question is: Does it promote sloppy colouring? The
answer to this depends on what the "it" in the last question
refers to: if it refers to a person who mindlessly fixes to use
*only* 3 numbers always, then yes, you are right. But at the cost
of strawmaning your target.
If the "it" refers to someone who sees no point in going #ffffff;
when they can type #fff; but who has and succumbs to frequent
desires to use such as #FFDEAD (NavajoWhite), then your case is
not advanced.
Perhaps the tendency to short form the colours does invite a lazy
tendency in some people? But, you, being aware of the problem
will not succumb. Be a devil and use the short where you can and
not where you want nicer...
There is an argument to say you should use the shorter. It is
this: if you don't you will spend more time typing and reading
longer code and this will sap energy that could be better devoted
to choosing really nice colours when it would be appropriate.
So, in other words, and to sum up, without any empirical evidence
one way or the other, it is as likely that your colour judgements
could be impaired by going one way as it is by going the other
way.
--
dorayme
Re: What is the equivalent Hex ?
am 02.11.2007 10:04:52 von jkorpela
Scripsit Reshma:
> I am new to HTML and CSS.
Then read a good book on them, starting from HTML.
> I came across this block of code, .link{
> color:#269;
> display:block;
> margin:4px 0 0 0;
> padding:2px 1em;
> }
Just ignore it.
> I am wondering what is the equivalent hex code for the color:#269 in
> the above.
What's the point in asking it here? If you tried to learn math, would you
frequent Usenet groups, asking people to tell you how much 16 + 68 is?
The point is that virtually any tutorial on CSS (even the crappy ones) tell
you the various ways to specify colors and how they relate. Did you intend
to manage without reading a single tutorial? Well, then you will probably
copy and imitate crappy code like the one you quoted (apparently setting
some links to a fixed color without setting background).
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: What is the equivalent Hex ?
am 02.11.2007 10:05:50 von Dylan Parry
Els wrote:
> This is Dave:
> http://www.mezzoblue.com/
Ah. I know the site, just not the Dave
>> It's probably obvious that I never look at the Zen Garden ;)
>
> Or subscribe to Dave's blog ;-)
Believe it or not, I don't really /do/ blogs. Although I've recently
started listening to Podcasts, so I'm slowly bringing myself into this
millennium ;)
--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk
The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Re: What is the equivalent Hex ?
am 02.11.2007 10:17:46 von Els
Dylan Parry wrote:
> Els wrote:
>
>> This is Dave:
>> http://www.mezzoblue.com/
>
> Ah. I know the site, just not the Dave
:-)
> Believe it or not, I don't really /do/ blogs.
Not even mine? :P
> Although I've recently
> started listening to Podcasts, so I'm slowly bringing myself into this
> millennium ;)
I've listened to a couple of Podcasts, but it's not as good as I
thought it would be. I thought I could just listen to them while doing
other things, but that doesn't work. Apparently multi-tasking is a
chronological concept, not a simultaneous one. I think I still prefer
the pre-podcast method: listen to music while reading content, rather
than listen to content while trying to do something else :-)
--
Els http://locusmeus.com/
Re: What is the equivalent Hex ?
am 02.11.2007 10:55:40 von Dylan Parry
Els wrote:
>> Believe it or not, I don't really /do/ blogs.
>
> Not even mine? :P
On occassion, but I don't subscribe ;)
>> Although I've recently started listening to Podcasts, so I'm slowly
>> bringing myself into this millennium ;)
>
> I've listened to a couple of Podcasts, but it's not as good as I
> thought it would be. I thought I could just listen to them while
> doing other things, but that doesn't work. Apparently multi-tasking
> is a chronological concept, not a simultaneous one. I think I still
> prefer the pre-podcast method: listen to music while reading content,
> rather than listen to content while trying to do something else :-)
I do that to be a problem, admittedly. I'll find that I've gone through
an hour or so and not actually heard a word, or that I'll have heard it
all but realise that I've not typed anything for 30 minutes! Still, it
makes a nice alternative to the radio or listening to the same music,
which always seems to crop up in a random playlist of ~5000 files :|
--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk
The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Re: What is the equivalent Hex ?
am 02.11.2007 11:18:34 von Els
Dylan Parry wrote:
[podcasts and multitasking]
> I do that to be a problem, admittedly. I'll find that I've gone through
> an hour or so and not actually heard a word, or that I'll have heard it
> all but realise that I've not typed anything for 30 minutes! Still, it
> makes a nice alternative to the radio or listening to the same music,
> which always seems to crop up in a random playlist of ~5000 files :|
That's why you should split your playlist in half - have a random one
of 2500 files, and once you're sick of it, use the other one.
Or do as I do: find a good internet radio station, and after a couple
of days in which you're hearing every song 5 times, you'll appreciate
the 5000 files random playlist on your pc again :-) (or switch to a
different station)
--
Els http://locusmeus.com/
Re: What is the equivalent Hex ?
am 02.11.2007 11:32:54 von Dylan Parry
Els wrote:
> That's why you should split your playlist in half - have a random one
> of 2500 files, and once you're sick of it, use the other one.
Interesting idea, but one I can't be bothered to do ;)
> Or do as I do: find a good internet radio station, and after a couple
> of days in which you're hearing every song 5 times, you'll appreciate
> the 5000 files random playlist on your pc again :-) (or switch to a
> different station)
Better idea. I do have a couple of stations bookmarked in WMP, and a few
more that I haven't listened to in ages. Maybe it's time to give them a
try again. FWIW, I used to use Pandora and Last.fm, but there was either
too much repetition or the music was all much the same without enough
variety.
--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk
The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Re: What is the equivalent Hex ?
am 03.11.2007 03:50:39 von Bone Ur
Well bust mah britches and call me cheeky, on Fri, 02 Nov 2007 07:03:29
GMT dorayme scribed:
>> > What is the problem with 3 digit specs that you have ever found?
>>
>> I don't like them because they promote sloppy coloring. Standard
>> colors don't have 3 groups of repeated digits; they're more like
>> #808080 or #c0c0c0 or even #d4d0c8. What color is #aa8844?
>
> well, I have not been following closely the context of all this
> but if it were to promote such a thing then I am sure it would be
> bad and you would be quite right to point this out.
>
> But the real question is: Does it promote sloppy colouring? The
> answer to this depends on what the "it" in the last question
> refers to: if it refers to a person who mindlessly fixes to use
> *only* 3 numbers always, then yes, you are right. But at the cost
> of strawmaning your target.
>
> If the "it" refers to someone who sees no point in going #ffffff;
> when they can type #fff; but who has and succumbs to frequent
> desires to use such as #FFDEAD (NavajoWhite), then your case is
> not advanced.
>
> Perhaps the tendency to short form the colours does invite a lazy
> tendency in some people? But, you, being aware of the problem
> will not succumb. Be a devil and use the short where you can and
> not where you want nicer...
>
> There is an argument to say you should use the shorter. It is
> this: if you don't you will spend more time typing and reading
> longer code and this will sap energy that could be better devoted
> to choosing really nice colours when it would be appropriate.
>
> So, in other words, and to sum up, without any empirical evidence
> one way or the other, it is as likely that your colour judgements
> could be impaired by going one way as it is by going the other
> way.
Well, I still don't like it. Besides what I said before, it can be
confusing. Some people may mis-take #bbb as #b0b0b0 instead of #bbbbbb,
and that could cause a lot of bo in the flower shop. I just don't think
such a "shortcut" is worth it for 3 miserable digits.
--
Bone Ur
Cavemen have formidable pheromones.
Re: What is the equivalent Hex ?
am 03.11.2007 05:00:53 von Bergamot
Blinky the Shark wrote:
> Harlan Messinger wrote:
>>
>> A three-digit RGB code #xyz is shorthand for a six-digit hex code
>> #xxyyzz. So, #226699.
>
> I did not know that; I always use six-digit. How is browser support?
Even Netscape 4.x supported it. I don't know of any browser that doesn't.
--
Berg