|
Posted by dorayme on 09/25/06 22:37
In article <4sdku3-c26.ln1@ophelia.g5n.co.uk>,
Toby Inkster <usenet200608@tobyinkster.co.uk> wrote:
> dorayme wrote:
>
> > There is a left out unit in
> >
> > div#testSheets p{
> > line-height:2;
> > }
>
> This is not an error. "line-height" is one of the few numeric values in
> CSS that *does not require a unit*.
>
> A unit *can* be specified, but when the unit is not specified, the
> property takes a special meaning -- it initially means the same as if it
> were specified in "ems" *except* that if any child elements have different
> font sizes, the line height will scale up and down with the font size.
>
> If you explicitly say "line-height: 2em" you get a different behaviour --
> the line height remains constant, even when child elements have a larger
> or smaller font.
>
> Line heights without units are usually the most useful.
I have made this mistake twice now recently. Sorry. Embarrassing!
I think I checked a validator and, without thought...
Thank God you are here. I am not kidding!
But let me try to recover some miserable low down squealing
excuse that would be beneath contempt for a real human... where
is this thread: ah yes... W3C "validator"
Errors
URI : http://www.taoofpeace.com/includes/content.css
* Line: 231 Context : div#testSheets p
Invalid number : line-height Parse Error - [empty string]
I saw a 2 there and thought this is not empty so... I have
probably even got this wrong too. This is all going bad. I need
to do some of that TAO yoga stuff... I think I will enroll.
(Re OP's site, it looks nice but I scarcely believe it needs such
complicated positioning and so much CSS.)
--
dorayme
Navigation:
[Reply to this message]
|