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

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 UTC