Using Pixel GIFs as Spacers

Each of the table cells below contain an image that is 1 pixel wide x 1 pixel high. Each image can be resized to any width and height by specifying a new value. When using pixel GIFs, always set the ALT attribute to "" (nothing) so that speech based browsers will ignore the image.

Here is the code used to display the pixels in the table below.

<img src="images/red.gif" width="50" height="50" alt="">

DOWNLOAD INSTRUCTIONS

Right-click inside any table cell below and choose Save Picture As (Internet Explorer) or Save Image As (Netscape Navigator). The right-most cell contains a transparent pixel, which will inherit the background color of its parent element.

Back to Student Resources