W3C home > Mailing lists > Public > www-style@w3.org > August 2002

Re: Float overflowing behavior

From: Bill Daly <billdalynj@yahoo.com>
Date: Fri, 16 Aug 2002 07:42:11 -0700 (PDT)
Message-ID: <20020816144211.27627.qmail@web13002.mail.yahoo.com>
To: www-style@w3.org

> I think 'inline-block' was designed for such tasks,
> and now it's in CSS 2.1 
> specification.
> See archives of this mailing list for the last
> (2001) year, this subject has 
> been discussed several times!

With all due respect, I don't see display:
inline-block as having any bearing on this matter
whatsoever.  Let's go back to the product catalog
example which I put forth in an earlier posting and
tweak the code a little to use the inline-block
property as you propose.

.productimage {
    display: inline-block;
}

<div class="product">
<p><img class="productimage" src="product01.jpg">This
is our lovely new widget, hot off the assembly line. 
Get your new model widget now!</p>
</div>

Now, going by what I have read of inline-block and
your own inline-block test cases, this would render as
the following.

+--------+     
|        |     This is our lovely new widget, hot off
| Widget |
| Image  |
|        |
+--------+

the assembly line.  Get your new model widget now!

This is what I would expect as the display of this
example, since the inline-block productimage would
expand the line box of the first line of the
paragraph.  Clearly, this would not be the desired
behavior to achieve the effect which we are looking
for in this case.

I still see some sort of float-overflow property
similar to what has been proposed in earlier postings
as the best option.

Bill Daly

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Received on Friday, 16 August 2002 10:42:12 GMT

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