RE: Spacer
by Chuck Evans <Chucke(at)captura.com>
|
| Date: |
Fri, 28 Apr 2000 11:34:13 -0700 |
| To: |
"'Peter Benoit'" <pbenoit(at)triton-network.com>, "'Michael Gerholdt'" <gerholdt(at)fredonia.edu>, "'Ben Ocean'" <beno(at)cnw.com>, hwg-techniques(at)mail.hwg.org |
| |
todo: View
Thread,
Original
|
|
"Lying" about image width and height is the web designer's BEST FRIEND. How
else can you get wonderfully big and colorful swathes of color at such a
bandwidth savings? Everyone should have a stable full of one-pixel gifs for
this kind of fun. I have a transparent one, and others in various shades of
grey, red, blue, etc. To keep them straight, I name them with their hex
value, like cccccc_1pix.gif.
My transparent 1pix.gif has a file date of 1996, to show you how long I've
been using it.
---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com
> -----Original Message-----
> From: Michael Gerholdt [SMTP:gerholdt(at)fredonia.edu]
> Sent: Friday, April 28, 2000 11:57 AM
> To: Peter Benoit; 'Ben Ocean'; hwg-techniques(at)mail.hwg.org
> Subject: Re: Spacer
>
> > <IMG SRC="blank.gif" height=1 width=50>
>
> naughty, naughty.
>
> <img src="blank.gif" alt="" height="1" width="1" hspace="25">
>
> this gets you 51 pixels, though. if you need 50 spot-on, use an image that
> is actually 1 pixel high and 2 pixels wide, and then
>
> <img src="blank.gif" alt="" height="1" width="2" hspace="24">
>
> don't lie to browsers about the actual dimensions of an image. They aren't
> obligated to believe you - even if most do.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.