You are here: Re: css problem (float) « HTML « IT news, forums, messages
Re: css problem (float)

Posted by Ben C on 09/06/07 20:54

On 2007-09-06, Deephay <tudoxxx@gmail.com> wrote:
> On Sep 6, 3:43 am, Ben C <spams...@spam.eggs> wrote:
[...]
>> .left
>> {
>> float: left;
>> background-color: pink;
>> width: 25%;
>> height: 300px;
>> }
>> .right
>> {
>> float: right;
>> background-color: palegreen;
>> width: 25%;
>> height: 300px;
>> }
>> .middle
>> {
>> overflow: hidden;
>> background-color: blue;
>> height: 400px;
>> }
[...]
> Another thing:
> I think Firefox does not handle CSS correctly, if you add a "width:
> 100%;" for the middle column, the middle column will overlap with the
> right float, which is not correct for that case since "overflow:
> hidden" makes the middle column established a new block formatting
> context.

You're right, it does do that, according to the spec, it is wrong. It
should move the middle one down to clear the other two in that
situation. But both Opera and Konqueror do the same thing as Firefox.

9.5:
[...]
If necessary, implementations should clear the said element by placing
it below any preceding floats, but may place it adjacent to such floats
if there is sufficient space.

But no-one actually does that.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация