Re: New layout language.

Kris@meridian-ds.com wrote:

>No, I'll be the first to mention that in my layout to Orion (which is where
>I ran into the issue) I used things like "left:50%; margin-left:5px; to get
>the spacing I needed
>
Right, this in absence of calc() witch which you could do it directly on 
the ‘left’ property.

>, however, that doesn't mean that it couldn't be
>userful, and more accurately, perhaps a min-left: attribute would be more
>useful still.  If we're going to specify minimum widths and heights for
>elements then we obviously have some sort of minimum static appearance we'd
>like to maintain.  Currently I know of no way to do such a thing with the
>spacing between objects.  While I've not run into this problem with
>relative and static positioning, absolute can be a pain in this reguard due
>to the fact that each object is absolutely placed in space, and a
>percentage based absolute system with min-width/heights specified, will
>eventually fail at some resolution.
>  
>
I thought about that as well, what you mean is:

+---------+
|[A][B   ]|
|   [    ]|
+---------+

If A is 10%, with a minimum-width of 100px, how are you going to ensure 
that B is placed immediately after A. You can’t tell it to position 
left: 10%, nor can you tell it to position left: 100px.

I thought about that as well, and to my knowledge there currently is no 
mechanism to do that. However, I do not think it would be used often 
anyway, see my rant about percentage sizing not being used much.

But min-left etc. could have other applications as well. For example, I 
can imagine specifying the width of a navigation area on the left in em 
units to make it size with the text, but wanting to give it a minimum or 
maximum size in pixels because of some decorative image that is used 
having those minimum or maximum dimensions. In that case you have a 
similar situation, and would also need min-left.

So I agree that it would make sense to have 
(min-,max-)(left,right,top,bottom), yes.


~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 Wednesday, 6 July 2005 14:37:14 UTC