W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: New layout language.

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Fri, 08 Jul 2005 12:02:34 +0200
Message-ID: <42CE4F3A.203@students.cs.uu.nl>
To: Orion Adrian <orion.adrian@gmail.com>
Cc: www-style@w3.org

Orion Adrian wrote:

>>By the way, in your example that you gave without right: and bottom:,
>>how can you specify that something ends x pixels before the end of the
>>window? In fact, how can you specify the place where a box ends in
>>anything else but percentages? You can't, so I think that makes your
>>proposal officially less powerful than CSS currently is :).
>>    
>>
>By defining the container it's in. The viewport is defined as well
>(but wasn't listed in the example). An oversight on my part.
>
>The viewport being another region is described as
>
>top: 0;
>left: 0;
>width: <number> + 100%;
>height: <number> + 100%;
>
>And with at addition it's absolute positioning is exactly as powerful,
>and simpler to boot.
>  
>
I don’t think the problem I see can be dismissed so easily... What you 
say doesn’t seem to work.

I can tell the container to offset 10px (or em whatever) from the top 
and left. But how can I offset it from the bottom and right by a 
similarly fixed amount? It seems that controlling the width can only be 
done by percentages, which means that it is impossible to create a 
balanced offset from the left and the right except when using 
percentages for the right as well.

If for example in the code you just gave I specify a left: 10em, and a 
width: 100%, the box will have zero offset from the right:

+--------+
+ [     ]+  (not centered)
++++++++++

And when I instead use width: 90% it depends on the viewport whether the 
distance to the right will be smaller, equal to or larger than 10em:

+--------+
+ [   ]  +  (not centered)
++++++++++

Also, I do not think it is right to limit the absolute values to em only 
(and not use units). Em is not the be-all-end-all...


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.
Received on Friday, 8 July 2005 10:02:34 GMT

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