Reply to Re: Div not nested correctly

Your name:

Reply:


Posted by Ben C on 02/03/07 17:13

On 2007-02-03, Jonathan N. Little <lws4art@centralva.net> wrote:
> Ben C wrote:
><snip>
>
>> Anyway, FF seems to float the right float in .panelHeaderContent all the
>> way to the right of the 300px container (the <td>), making the computed
>> width of .panelHeaderContent 300px. I can see no justification for that.
>> Opera and Konqueror both get it right. But "right" isn't the effect you
>> want, since you want "End" at the right of the <td> presumably.
>>
>> Your problem is easily fixed though if you just add width:290px to the
>> selector for .panelHeaderContent. The container is 300px and the image
>> is 10px, so you know that width needs to be 290px.
>
> .panelHeaderContent
> {
> width: 290px; ...
> ,
> Yep, explicit width needed. Usually IE borks if you do not specify a
> width on floated blocks.

In this case it was FF not doing what the OP wanted. FF was wrong, but
correct behaviour in this case is also not what he wanted. No idea what
IE was doing, perhaps on this occasion a fortuitous concatenation of
bugs resulting in what he did want.

> Which Opera? Because Opera 8.51 computes DIV 'panelHeaderContent' much
> less than 290 pixels but as the min width of both contained DIVs which I
> do not believe the OP wishes.

Opera 8.02, also does what you describe-- width of panelHeaderContent is
the width of the two floats in it. I believe this to be correct.

As you say, not what the OP wants, but what FF was doing was not what he
wanted either since making panelHeaderContent 300px wide put it below
the floated img instead of to the right of it.

[Back to original 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

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