W3C home > Mailing lists > Public > www-style@w3.org > September 2006

Re: input element - absolute positioning - determing width with left and right

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 07 Sep 2006 09:51:59 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: www-style@w3.org
Message-ID: <op.tfhz4xdr64w2qv@id-c0020.oslo.opera.com>

On Thu, 07 Sep 2006 09:26:38 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Yes, but because it's overconstrained, so the value for "right" is  
> ignored (if direction is "ltr").  That is, in this case you have  
> specified all three of width, left, and right....

Fair point. I prolly shouldn't have included the height="" and width=""  
attributes. New example:

   <div><img src="image" alt=""></div>

   div { position:relative; width:1000px }
   img { position:absolute; left:0; right:0 }

The image has an intrinsic width of 200px by 200px. The current  
specification says you have to ignore right again which might not make  
sense to anyone...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 7 September 2006 07:52:21 GMT

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