Zebra 3 Report by Joe Anybody
Saturday, 11 September 2010
5. Using Color Names Instead of Hexadecimal
Mood:  energetic
Now Playing: Webmaster tips that are just about ... way over my head
Topic: MEDIA

5. Using Color Names Instead of Hexadecimal

http://twitter.com/10minuteexpert?utm_campaign=newfollow20100823&utm_content=profile&utm_medium=email&utm_source=follow

Declaring red for color values is the lazy man’s #FF0000. By saying:

color: red;

You’re essentially saying that the browser should display what it thinks red is. If you’ve learned anything from making stuff function correctly in all browsers — and the hours of frustration you’ve accumulated because of a stupid list-bullet misalignment that can only be seen in IE7 — it’s that you should never let the browser decide how to display your web pages.

Instead, you should go to the effort to find the actual hex value for the color you’re trying to use. That way, you can make sure it’s the same color displayed across all browsers. You can use a color cheatsheet that provides a preview and the hex value of a color.

This may seem trivial, but when it comes to CSS, it’s the tiny things that often lead to the big gotchas.


Posted by Joe Anybody at 8:37 PM PDT

View Latest Entries

« September 2010 »
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
You are not logged in. Log in
Ben Waiting for it ? Well Look Here!
Robert Lindsay Blog
ZEBRA 3 RAG
Old Blogs Go to Joe's Home Web Site
joe-anybody.com
Underground
Media Underground
Joe's 911 Truth Report
911 TRUTH REPORT

OUTSIDE THE BOX
Alex Ansary