Connecting Tech Pros Worldwide Help | Site Map

Re: Style problem (DIV sizing)

Roy A.
Guest
 
Posts: n/a
#1: Nov 17 '08
On 16 Nov, 22:35, hu47121+nos...@usenet.kitty.sub.org (Hannah) wrote:
Quote:
Hi!
>
On this page:
*http://www.lifesong.de/veranstaltungen.html
firefox 2 shows the page (especially the boxes) as I want them to
display (let the width scale according to viewport size, let the
"background" image scale accordingly, let the text wrap freely and the
height adjust).
>
However, konqueror (3.5.9) misdisplays the page:
I haven read your code, but the fact that konqueror misdisplays your
page is telling me something. You don't get it right. Konqueror is
mostly doing it right, and most of the time, more right than Firefox.
I will asume, it's you who is doing something wrong.
Ben C
Guest
 
Posts: n/a
#2: Nov 17 '08

re: Re: Style problem (DIV sizing)


On 2008-11-17, Roy A. <royarneskar@gmail.comwrote:
Quote:
On 16 Nov, 22:35, hu47121+nos...@usenet.kitty.sub.org (Hannah) wrote:
Quote:
>Hi!
>>
>On this page:
>*http://www.lifesong.de/veranstaltungen.html
>firefox 2 shows the page (especially the boxes) as I want them to
>display (let the width scale according to viewport size, let the
>"background" image scale accordingly, let the text wrap freely and the
>height adjust).
>>
>However, konqueror (3.5.9) misdisplays the page:
>
I haven read your code, but the fact that konqueror misdisplays your
page is telling me something. You don't get it right. Konqueror is
mostly doing it right, and most of the time, more right than Firefox.
I will asume, it's you who is doing something wrong.
No in this case Konqueror is wrong.

The basic structure is:

rel pos div
static pos div
abs pos img with height: 100%

Although rel pos div has auto height, its height is determined only by
its normal flow contents-- the static pos div.

The img should then be 100% of that height. The spec says this is
supposed to work.

The percentage is calculated with respect to the height of the
generated box's containing block [p. 116] . If the height of the
containing block is not specified explicitly (i.e., it depends on
content height), and this element is not absolutely positioned, the
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
value computes to 'auto'. A percentage height on the root element
[p. 35] is relative to the initial containing block [p.
157] .
Closed Thread