• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Page Layout > Using Pixel Shims

Using Pixel Shims

A shim in the physical world is a little piece of wood (or sometimes paper) that you stick under one of the legs of your table (for example) to make it stop wobbling. A pixel shim is a wedge of pixels, sometimes in color, that you insert between elements on a page to shore up the balance and alignment.

To use a pixel shim:

1.
Create a 1 pixel by 1 pixel GIF image in the desired color (see page 64).

2.
In your HTML document, type <IMG SRC="pixelshim.gif", where pixelshim.gif is the name of the image created in step 1.

3.
Type WIDTH=w HEIGHT=h, where w and h are the desired (not the actual) width and height, in pixels, of the desired space.

4.
To wrap text around the shim, type ALIGN=left or ALIGN=right (see page 88).

Or you can align the shim next to the text (and not around it) by typing ALIGN=direction, where direction is top, middle, or bottom (see page 93).

5.
Add other image attributes, as desired.

6.
Type the final >.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint