Connecting Tech Pros Worldwide Help | Site Map

Re: Style problem (DIV sizing)

  #1  
Old November 17th, 2008, 03:05 AM
Roy A.
Guest
 
Posts: n/a
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.
  #2  
Old November 17th, 2008, 08:55 AM
Ben C
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Update (was Re: Style problem (DIV sizing)) dorayme answers 0 November 18th, 2008 11:35 PM
Re: Style problem (DIV sizing) Bergamot answers 2 November 17th, 2008 11:55 AM
Re: Style problem (DIV sizing) Ben C answers 1 November 17th, 2008 08:45 AM
Re: Style problem (DIV sizing) dorayme answers 1 November 17th, 2008 01:05 AM