make a div use maximum width

make a div use maximum width

am 21.08.2007 10:49:07 von Hans-Peter Sauer

Hi,
I want the green piece ("Please be wide") to fill the whole space
between the red and the blue thingy. How can I do that?

Thank you in advice,
-Gernot

PS: My code is as minimal as possible, I know I should use strict-html
and stuff.









Please be wide





Re: make a div use maximum width

am 21.08.2007 13:51:18 von Neredbojias

Well bust mah britches and call me cheeky, on Tue, 21 Aug 2007 08:49:07 GMT
Gernot Frisch scribed:

>
> Hi,
> I want the green piece ("Please be wide") to fill the whole space
> between the red and the blue thingy. How can I do that?
>
> Thank you in advice,
> -Gernot
>
> PS: My code is as minimal as possible, I know I should use strict-html
> and stuff.
>
>
>
>
>


>
>

>
>
>
Please be wide

>
>

>

>
>

Put a   after


--
Neredbojias
Half lies are worth twice as much as whole lies.

Re: make a div use maximum width

am 21.08.2007 14:18:46 von Hans-Peter Sauer

>
> Put a   after



No. Neither in IE6, nor in FF.

Re: make a div use maximum width

am 22.08.2007 07:38:03 von Martin Jay

On Tue, 21 Aug 2007 10:49:07 +0200, "Gernot Frisch"
wrote:
>I want the green piece ("Please be wide") to fill the whole space
>between the red and the blue thingy. How can I do that?

This is because the centre DIV isn't given a width.

>
>
>


>
>

>
>
>
Please be wide

>
>

>

>
>

One solution may be to wrap the left, centre and right DIVs into an
additional DIV, and give that a green background colour:










Please be wide









--
Martin Jay

Re: make a div use maximum width

am 22.08.2007 09:56:03 von Hans-Peter Sauer

> One solution may be to wrap the left, centre and right DIVs into an
> additional DIV, and give that a green background colour:

Perfect! That's the way to do it.