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

Re: Percentage height meaurements.

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Fri, 28 May 2004 08:03:58 +1000
Message-ID: <40B665CE.80002@iinet.net.au>
To: Richard York <richy@smilingsouls.net>
Cc: www-style@w3.org

Richard York wrote:
> My question is, are there any solutions available or in the proposal
> stage that would allow a designer to utilize the 100% measurement minus
> the length of margins, padding and borders. I've done quite a bit of
> digging in the specifications and have come up naught so far.

   This should produce the result you're after.  It won't work in IE, 
but it is valid and does work in standards compliant UAs

div {
     position: absolute; /* or relative */
     top: 0;
     bottom: 0;
     padding: 10px;
     margin: 10px;
     border: 1px solid black;
}

-- 
Lachlan Hunt

http://www.lachy.id.au/
lachlan.hunt@lachy.id.au
Received on Thursday, 27 May 2004 18:04:27 GMT

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