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

Re: Comparing style sheet languages (was: font size)

From: Håkon Wium Lie <howcome@opera.com>
Date: Sun, 7 Apr 2002 13:29:55 +0200
Message-ID: <15536.11699.889582.511039@gargle.gargle.HOWL>
To: Chris Casciano <10sball@placenamehere.com>
Cc: "'www-style@w3.org'" <www-style@w3.org>
Also sprach Chris Casciano:

 > > I think you meant:
 > > 
 > > BLOCKQUOTE {
 > >    position: absolute;
 > >    left: 50%;
 > >    margin-left: -1em;
 > > }           /*  ^  */
 > > 
 > > But that doesn't work either, because it takes the BLOCKQUOTE out of the
 > > flow, which AFAIK is not the intent of the challenge.

 > It doesn't say where the right edge of the content area has to be, so I
 > can't see why you can't alternatively answer the question with:
 > 
 > blockquote {
 >     margin:0 0 0 50%;
 >     padding:0;
 >     position:relative;
 >     top:0;
 >     right:1em;
 > }

Because the margin values are relative to the box established by the
*parent*. The challenge was to posisiton it relative to the content
area (i.e., the area into which the content is poured).

-h&kon
              Håkon Wium Lie                          cto °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Sunday, 7 April 2002 07:41:15 GMT

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