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

% width floats within absolute positioned element

From: Simon Pieters <zcorpan@hotmail.com>
Date: Sun, 10 Dec 2006 22:26:56 +0000
Message-ID: <BAY109-F397EBC2A52FC4BE864F63BB4D10@phx.gbl>
To: www-style@w3.org

Hi,

What is correct rendering for these test cases?

   <!doctype html>
   <title>001</title>
   <style>
    div { position:absolute; background:yellow; }
    p { float:left; width:50%; background:blue; color:white; }
   </style>
   <div>
    <p>What should happen here?</p>
   </div>

   <!doctype html>
   <title>002</title>
   <style>
    div { position:absolute; background:yellow; }
    p { float:left; width:50%; background:blue; color:white; }
    span { float:right; }
   </style>
   <div>
    <p>What should happen here?</p>
    <span></span>
   </div>

Should the wide should the DIV and the P be? Should the SPAN make any 
difference?

Browsers aren't interoperable on the above two tests and I don't know which 
is correct.

Regards,
Simon Pieters

_________________________________________________________________
Leta efter bilder på Red Hot Chili Peppers http://search.live.com/images/
Received on Sunday, 10 December 2006 22:27:17 GMT

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