| Web
Design Tips Archive
December
2006
How to deal with web colors
- Have you ever created web pages or graphics in which the colors always change when being viewed in different machines? Why does this happen? It's because different platforms use different color palettes. Both Macs and PCs have 256 colors in their system palettes, but only 216 of them are the same colors.
The major browsers, Netscape and Internet Explorer, use the same palette-management process to pull colors from the system palettes. So, if you specify colors by randomly choosing by favor, those colors will be forced by browers to display incorrectly using the color in the system palette.
How do I know which colors will not change when they are viewed on different machines?
The 216 web colors are in the form of 00 33 66 99 CC FF.
November
2006
Use
transparent GIF images - Graphics are
usually stored as rectangular images. If you want
to present a graphic image with an irregular outline
shape, consider using transparent GIF images.
Also, remember that you can sometimes get the
same effect without using transparent GIF files.
Just use a background color for your Web page,
and choose the same "background" color for your
image. When the browser paints the image, the
"background" color of the image will be indistinguishable
from the page background color, and you will get
the same effect as the transparent GIF. Of course,
this only works if the page background is a solid
color, but it is dead simple and it works with
any graphics file format.
|
|