|
Design Tips
• The web color cube
• Making smoother images
• Page layout tables
• Pixel spacer
• JPEG image compression
• GIF image compression
• GIF Animation
 |
The web color cube -
Before you even start creating that killer
graphics for your site, make sure that the color your using will show up
the same as in the browser. Unless your using the latest version of
Photoshop, Fireworks, PaintShop Pro or any image editing software, you will
need to use a color swatch that match the 216 color range of most browsers.

These are the 216 colors that the usual
browser uses in its palette. By using these colors on your web pages, you
can be assured that the viewer will see your images exactly as you
intended. If you don't use the same color, the browser will use it's
default color.
Loading the color
cube into Photoshop's color picker:
กก
1. Save the image above to your
hard disk (click and hold down your mouse button if you're using a Mac
and right click if you're using a PC, which will bring up a pop up menu
that allows you to save the image to your hard disk).
2. Open the image in Photoshop.
3. Change mode to indexed color using "exact palette" and color
depth of 8 bits/pixel (Image/mode/indexed color, the image may already be
in this mode).
4. Open the color table (Image/mode/color table).
5. Save the palette as "color_cube.tbl" onto your hard disk.
6. Cancel out of the Color Table dialog box.
7. Go to Swatches in your colors window.
8. Click on the right arrow to pop up a submenu, and choose "Load
Swatches."
9. Search your hard disk to find "color_cube.tbl," and open that
color table.
10. Close Photoshop and restart it to make sure it has saved this
table as your default set of swatches. You can now use it to choose
colors for creating and manipulating images for the web.
back to top |
 |
Page
layout tables -
The use of tables to control the layout of
page elements is another workaround that designers must use to obtain the
results they want. By pouring text and images inside tables with borders
turned off, you can better control where everything is on your page.
Almost all of the sites on the web today utilizes tables in their image and
page layouts. Most of them use nested tables for even more layout control.
Even this site uses tables to layout it's contents.
Be careful when editing nested table in HTML. Hit the wrong tag and your
page will go haywire, and that can drive you mental just trying to find out
which one.
back to top |
 |
Pixel
spacer-
Because of current HTML limitations, site designers must resort to all
sorts of workarounds in order to have control over the layout of pages. The
single-pixel GIF is probably the most significant of these workarounds.
They are usually used to give a space in between images or text. They can
also be used repeatedly as an image fill if your graphics contains the same
color as the pixels in between the other graphics. This will not only make
loading the image faster but will also save you on bandwidth use.
back to top |
 |
JPEG
image compression -
When working with photographic images on
your web site, it's best to use the JPEG format. Remember that, unlike GIF,
JPEG is a lossy process. The image will not look the same as the original
after compression. On the Web, you want to use the highest compression to
keep file sizes down.
One thing to remember, when you're rendering you're images, try not to use
the sharpen filter or tool too much. This will increase your image file
size. Also, keep away from the color RED
as much as you can if your planning to save your images in JPEG. The color
red is the hardest color to compress. If you compress it too much, the
color edges will wash off, on the other hand if you want to keep it clear,
you may have to opt for a higher file size for your image.
|
SAMPLE JPEG
COMPRESSION VALUES |
 |
 |
 |
 |
|
100% |
75% |
50% |
25% |
back to top |
 |
GIF
Animation
It's simple to add animation to your web
pages. While this may spice up the look of your pages, it's important to
pay attention to file size.
No
matter how cool you think it is, your visitors probably won't hang around
to see your 200k animation. Keep the image size small by working with as
few frames as possible.
back to top |
|
|