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

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 UTC