W3C home > Mailing lists > Public > www-style@w3.org > April 2002

Comparing style sheet languages (was: font size)

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 06 Apr 2002 18:05:34 +0100
Message-ID: <3CAF2ADE.1@hixie.ch>
To: Håkon Wium Lie <howcome@opera.com>
CC: "'www-style@w3.org'" <www-style@w3.org>
Håkon Wium Lie wrote:
> 
> People who are interested in comparing language and syntax from
> various style sheet mechanisms may be interested in:
> 
>   http://people.opera.com/howcome/2002/style/chart.html

A very interesting document!

: Challengo: Set H1's font size to the double of the root element's font size.

CSS3 would just need a unit relative to the Root element's EM -- say, 'rem' -- 
to do this quite easily:

    H1 { font-size: 1rem; }

: Challenge: Place the left content edge of a BLOCKQUOTE element 1em to the left
:            of the middle of the canvas.

That can be done in CSS:

    BLOCKQUOTE {
       position: absolute;
       left: 50%;
       margin-left: 1em;
    }

-- 
Ian Hickson
``The inability of a user agent to implement part of this specification due to
the limitations of a particular device (e.g., non interactive user agents will
probably not implement dynamic pseudo-classes because they make no sense
without interactivity) does not imply non-conformance.'' -- Selectors, Sec13
Received on Saturday, 6 April 2002 12:05:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT