Hexadecimal Color Notation on the Web

Written by Stephen Bucaro


Continued from page 1

RGB Triplet for Cornflowerblue

color dec hex red 100 64 green 149 95 blue 237 ED

We could then specifyrepparttar color of text within a span usingrepparttar 132469 hexadecimal notation as shown below.

<span style="color:#6495ed;">Text</span>

Note that when we indicaterepparttar 132470 use of hexadecimal notation by placing a pound (#) sign in front ofrepparttar 132471 number, and we don't use commas to separaterepparttar 132472 color components.

If it's not easy to convert between decimal and hexadecimal in your head, then how do you do it? You can use a calculator that has a decimal to hexadecimal coversion function, or you can learn to think in hexadecimal. For example, what'srepparttar 132473 next number after CE? That would be CF. what'srepparttar 132474 next number after CF? That would be D0. Which hexadecimal number is higher 99 or B2? B2 would be higher than 99. It gets easier with experience.

Here's Java Script code for a simple decimal to hexidecimal color converter

function convert(decvalue) { var num = parseInt(decvalue); if(num >= 0 && num < 256) { var hexnum = num.toString(16); alert("#" + hexnum); } else {alert("Error!");} }

It's important to use hexadecimal notation to specify colors when you use DHTML with visual effects, because to create a dynamic color change you have to increment or add a value to a color. The vast amount of color specification on webpages is in hexadecimal notation, so it would be wise to become familiar with it.

---------------------------------------------------------- Resource Box: Copyright(C) Bucaro TecHelp. To learn how to maintain your computer and use it more effectively to design a Web site and make money onrepparttar 132475 Web visit bucarotechelp.com To subscribe to Bucaro TecHelp Newsletter visit http://bucarotechelp.com/search/000800.asp ----------------------------------------------------------

To learn how to maintain your computer and use it more effectively to design a Web site and make money on the Web visit bucarotechelp.com To subscribe to Bucaro TecHelp Newsletter visit http://bucarotechelp.com/search/000800.asp


Are Web Templates Worth It?

Written by Dennis Dadey


Continued from page 1

Ok, here is where I come in, as well as my fellow designers. The times for web site design are changing as competition grows daily, not just from low-cost template designs but from low-cost designers (will talk about that in more detail in another article). I am not going to list any particular template design company as there are only a few choice ones. Templates are an excellent resource to offer your customers as you are showing your willingness to work with them for reasonable costs. You can fine tunerepparttar design, whether it be graphic changes as well as text. As a rule, many companies do not haverepparttar 132467 software to perform modifications torepparttar 132468 web site template or they haverepparttar 132469 software but notrepparttar 132470 time or expertise. The template is a good starting point and can save costs, but modifications are usually needed as one size does not fit all. This wayrepparttar 132471 customer gets good value and you get new business.

- Aboutrepparttar 132472 Author -

Since 1997, Dennis Dadey, Chief Designer at IR Design, has been helping people with e-commerce applications. Find out more about IR Design at http://www.irdesign.com

Since 1997, Dennis Dadey, Chief Designer at IR Design, has been helping people with e-commerce applications. Find out more about IR Design at http://www.irdesign.com


    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use