Sitemap
  3DBox GIF - my next trick is impossible
DEMONSTRATION PAGES

Lines in Several Colours


*

There are two ways of producing simple coloured lines:

1. A single cell coloured .gif image which you can stretch,
2. A transparent single cell gif in a table cell with BGCOLOR

  *

1. Single Cell coloured .gif

You can have simple coloured lines or squares.
The basis of each one is a single coloured pixel GIF of HEIGHT=1 WIDTH=1

You can then use these very small GIFs with the height and width you require.
The red line at the top of this page is HEIGHT=5 WIDTH=450

In case you do not have a graphics package handy, here are some GIFs
in basic colours for you to download.

 
black     black    black

gray     gray    gray

silver     silver    silver

blue     blue    blue

midblue     midblue    midblue

aqua     aqua    aqua

yellow     yellow    yellow

lime     lime    lime

midgreen     midgreen    midgreen

green     green    green

orange     orange    orange

red     red     red

fuchsia     fuchsia    fuchsia

purple     purple    purple

maroon     maroon    maroon

white     white   white
(Without the border you would not see this one,
because it is white against a white background).

space     space   space
(Without the border you would not see this one either,
because it is transparent and used for creating a space).

On the other hand

But maybe it is possible to go too far on this, size-wise. When transmitted all GIFs are compressed and simple GIFs take very little time, mostly overhead time. And when stored, GIFs will always have the disk storage minimum size. But efforts to minimise image size must always be applauded.

If you like to be a little more adventurous at minimal extra cost, you could try multi-coloured simple-coloured gifs. I have three in stock, none of which I am particularly keen on:

Blue Plus     blue plus

Red Plus     red plus

Yellow Plus     yellow plus

  *

2. A transparent single cell gif in a table cell with BGCOLOR

This is illustrated in a vertical cell forming a coloured stripe down the page. Go to stripe6.htm for details.

The same technique using a table cell is a neat way of producing coloured bars across the page. There is a minor problem with this in that some older browsers do not handle cell BGCOLOR very well.

The code is as follows:

<center>
<table><tr>
<td bgcolor="red">
<img src="buttons/space.gif" width=400 height=3 alt="" border="0">
</td></tr></table></center>

The color is specified in the TD clause, the width and height is in the IMG statement. With this you do not have to upload the specific colours you require into your image directory, only a standard transparent space.gif which you may find useful for other things too.

The width and height is slightly different from what you might expect since there is a default in TABLE that gives CELLPADDING=3 and this is added to the image width and height values that you specify.

[ Top ]

*

Website by: Richard Waller
Comments? Suggestions? Contributions?
Please contact us
      Go to HomePage Home
Page
     Go to Sitemap Site
Map

URL: http://www.waller.co.uk/lines.htm