Re: Score one for Mozilla

by "Lauren Hanka" <bluejay(at)starband.net>

 Date:  Tue, 12 Mar 2002 16:10:17 -0800
 To:  <hwg-techniques(at)hwg.org>
 References:  wtc ntlworld
  todo: View Thread, Original
Hi Andrew,

What I meant was, I use a spacer gif to specify the height of a solid,
colored line (for decoration purposes) --not the height of a line of text.
Sorry for the confusion --I'm a bit new to CSS!

For a red line, 1 pixel high, and extending 100% across the page, I would do
this within a table of 100% width:

<.td bgcolor="#ff0000"><img src="spacer.gif" height="1" width="1" alt="
"><./td>

Thanks to Elizabeth Davies helpful advice, I now add the following to my
style sheet:

td img { display: block; }

Mozilla's happy with it, and I'm happy 'cause Mozilla's happy! :)

Lauren



----- Original Message -----
From: "Andrew McFarland" <aamcf(at)aamcf.co.uk>
To: <hwg-techniques(at)hwg.org>
Sent: Tuesday, March 12, 2002 2:31 PM
Subject: Re: Score one for Mozilla


> At 10:12 12/03/02 -0800, Lauren Hanka wrote:
> <snip/>
> >I love using a spacer gif placed in a td for specifying line height.
> <snip/>
>
> >So what should I do?
> <snip/>
>
> Use the CSS property line-height instead; that is the correct way to do
it.
>
> Andrew
>
> --
> http://aamcf.co.uk/
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA