W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: CSS: %% length unit. Proposal. Some clarifications.

From: <fora@annevankesteren.nl>
Date: Sun, 9 May 2004 08:13:42 +0200
Message-ID: <1084083222.409dcc16e3a69@webmail.annevankesteren.nl>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Ian Hickson <ian@hixie.ch>, www-style@w3.org

> > Could you please define, in terms given in the CSS specification, the
> > exact algorithm you are proposing to determine the "free space" for any
> > given dimension of an element in a layout?
> >
> > In particular, how do nested floats, positioned elements in sibling
> > containing blocks, overflow content from cells in non-sibling tables, and
> > so forth, affect the "free space"?
> >
> 
> I am not too strong in formal English, and especially in specifications.
> Nevertheless...

You are not defining. You give examples.


> <div style="width:100px; height:100px; margin:auto;
> background-color:orange">center</div>
> 
> margin:auto here means exactly margin:50%%. (At least Mozilla knows about
> "free space" concept)
> (with exception: margin:50%% will force div content box to appear in the
> middle of the screen verticaly also)

First, that would break the current CSS model. Since I assume you are talking
about an HTML document, were both HTML and BODY (DIV is a child of BODY) have a
'height:auto' so this can't be possible.

Second, you have said something before about centering, but you used
'margin:100%%' in that case.

Because of that, your proposal is confusing. Please don't give examples but
define exactly how 'heigt' or 'margin' is calculated.


> %% units should be allowed ONLY in margin and width/height CSS attributes
> for boxes having 'normal' flow.

Is this a joke?
Received on Sunday, 9 May 2004 02:14:20 GMT

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