Hexadecimal Color Notation on the Web

Written by Stephen Bucaro


---------------------------------------------------------- Permission is granted forrepparttar below article to forward, reprint, distribute, use for ezine, newsletter, website, offer as free bonus or part of a product for sale as long as no changes are made andrepparttar 132469 byline, copyright, andrepparttar 132470 resource box below is included. ----------------------------------------------------------

Hexadecimal Color Notation onrepparttar 132471 Web

By Stephen Bucaro

When designing elements for your webpage, you will often be called upon to specify a color. For example,repparttar 132472 code for a span shown below specifies thatrepparttar 132473 color ofrepparttar 132474 text withinrepparttar 132475 span will be yellow.

<span style="color:yellow;">Text</span>

Colors can be specified according to their names, for example "yellow", "green", or "blue". In many cases, these simple color names will work. But what if you want to specify a more sophisticated color like "cornflowerblue"? A particular browser may not recognize a particular color name. It's more reliable to specify colors with an "RGB triplet".

An RGB triplet specifies a color based uponrepparttar 132476 amounts of red, green, and blue, on a scale from 0 to 255, required to createrepparttar 132477 color. For example, to createrepparttar 132478 color cornflowerblue you need red=100, green=149, and blue=237. We could then specifyrepparttar 132479 color ofrepparttar 132480 text within a span usingrepparttar 132481 rgb function as shown below.

<span style="color:rgb(100,149,237);">Text</span>

This will work fine with style notation, but what if you want to use straight html. Html doesn't recognizerepparttar 132482 rgb function. In that case, you can specify color using "hexadecimal" notation. Whereasrepparttar 132483 decimal numbering system usesrepparttar 132484 characters 0 through 9 to get 10 values,repparttar 132485 hexadecimal numbering system usesrepparttar 132486 characters 0 through f to get 16 values. (After 9repparttar 132487 characters a, b, c, d, e and f are used, as shown below.)

Decimal Hexidecimal Equivilants

dec hex 0 = 0 1 = 1 2 = 2 3 = 3 4 = 4 5 = 5 6 = 6 7 = 7 8 = 8 9 = 9 10 = A 11 = B 12 = C 13 = D 14 = E 15 = F

On first appearance, this looks pretty simple but you need two hexadecimal characters to represent all decimal values from 0 to 255. When you increment decimal 9 by 1, you changerepparttar 132488 9 to 0 and put 1 inrepparttar 132489 ten's place. When you increment hexidecimal F by one, you changerepparttar 132490 F to 0 and put 1 inrepparttar 132491 "sixteens" place. Sometimes it's not easy to convert between decimal and hexadecimal in your head.

Are Web Templates Worth It?

Written by Dennis Dadey


By Dennis Dadey (c) 2004

First off, I am a designer. Now you're thinking, here's this guy trying to convince me to hire a designer costing a few hundred to a few thousand dollars instead of buying a pre-made web template for about $60. Well, these days most companies don't haverepparttar money to invest in a costly web site and there are thousands of hungry web designers out there, plus now there are web template resources. These resources can equal great value and effectiveness forrepparttar 132467 customer as well as increased business forrepparttar 132468 web designer.

Forrepparttar 132469 customer it is important to be prepared. They need to know what their website should look like, how it will perform,repparttar 132470 ability to update and add to it easily, so as not to be held hostage by a design firm's technical code talk.

Now forrepparttar 132471 reality of web templates. There are hundreds of web templates and many web sites offeringrepparttar 132472 same hundreds of templates. There are templates for a wide range of business types: from agriculture to wedding sites. Depending onrepparttar 132473 business category you may find 20 to 400 hundred different template packages to choose from. Most look quite good, but remember you may not berepparttar 132474 only company that buysrepparttar 132475 template. There could be sites that lookrepparttar 132476 same as yours unless you buy an exclusive onrepparttar 132477 design. The price for an exclusive design ranges from $800 to $3000, meaning you must berepparttar 132478 first customer to purchaserepparttar 132479 template to be used only by you. Onrepparttar 132480 other hand, prior to your purchase of a particular template, several customers may have bought that same template and can use it as well, and as a result will have made this template non-exclusive.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use