evidWEB | 
Director web. Lansare pe 3 decembrie!
Abstract. Web archive 2008 Abstract. Web Archive. » Web Color Shorthand


[x]close


Web Color Shorthand

August 28th, 2007

Using Short Versions of Color Codes in CSS

Once you’ve started using CSS layouts for your Web designs, you may notice something odd about the way the colors are defined. Rather than the standard 6-character long code after the pound sign (#cc99ff), instead you see just three characters (#c9f). This is called color shorthand and it takes advantage of the fact that the browser-safe Web palette uses triplets that are always doubled. In other words, each color triplet is made of 3 pairs of characters 0-f (base 16), and with browser-safe colors they are doubled. So, to write color shorthand, you simply remove the duplicate character.

For example:

  • White is written

    #fff

  • Black is written

    #000

  • Red is

    #f00

  • Green is

    #0f0

  • Blue is

    #00f

and so on…

by About.com/ 

Comentarii

Trebuie sa fi autentificat pentru a adauga un comentariu.

  AdSmarty Web Director - promovare la superlativ  Search Engine Submission and Optimization  Submit your website to 20 Search Engines - FREE with ineedhits!  Open Directory Project at dmoz.org  director web 
director web  Adauga site in top online  Submit Your Site To The Web's Top 50 Search Engines for Free! 

Free Website Directory
Free Web Directory the best web directory, offering free submission in an human edited catalog.

Get Included in Major Search Engines - Fast!
Overture products are now Yahoo! Search Marketing products.
www.cunoscut.ro Servicii si resurse pentru promovare si optimizare site