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

Re: 'offsetWidth/height' function

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 7 May 2004 19:17:38 -0700
Message-ID: <000601c434a2$a2bc4410$0301a8c0@ATHLON>
To: <www-style@w3.org>

See, examples:

> I believe it can, but maybe I'm misunderstanding what the above means.
Layout:
<p>password:<input style="width:80%%"></p>

could be reproduced pretty close by <table> :
<table>
<tr>
<td>password:</td><td width=80%><input style="width:100%"></td><td
width=20%>&nbsp;</td>
</tr>
</table>

Or in XUL:
password:<input flex="8" /><spacer flex="2" />

> Again, I don't completely understand what the above means, but if it's
> centering an object vertically and horizontally within a
> container, then sure that's trivially possible with the XUL box model
> without using spacers.

Yep, it is centering, but what about this:

<DIV style="margin-top:10%%; margin-bottom:50%%">close to the top</DIV>
<DIV style="margin-bottom:40%%">close to the middle</DIV>

In XUL you will need three spacers here. Right? (I am not a practical XUL
programmer)

Andrew Fedoniouk.
http://terrainformatica.com
Received on Friday, 7 May 2004 22:17:58 GMT

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