On Fri, 12 Dec 2008 08:40:56 -0800
Came this utterance fomulated by Angela French to my mailbox:

> 
> Angela French wrote:
> > Benjamin - I am trying your approach to just style my h2 with a
> > background color. It is definitely get there, but it makes the
> > height
> of
> > the color block too "tall", putting extra padding in below the
> > actual
> h2
> > text.  Since one can't make negative padding, it seems setting a
> height
> > to the h2 is the only way to size the color block the way I want. Is
> > this the most appropriate way of getting the block of color to be
> > the size I want?
> 
> Given you can't ultimately control the size of the H2 text, what size 
> _do_ you want? (i.e. why are you trying to enforce a particular height
> at all?)
> 
> --
> Benjamin Hawkes-Lewis
> 
> 
> It isn't a matter of controlling the size of the h2, but of the margin
> beneath it.

The 'line-height' property may be what you need. Set padding and margin
to zero. Line height will center on the middle of the font vertically
and does not require units be specified. 1 is font height and 1.5 is
font height with 0.25 above and 0.25 below. A setting of about 1 or 1.1
may achieve your aim.

-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to