Click to See Complete Forum and Search --> : Can we do this with <div>


turb
02-17-2004, 04:20 PM
Hi!

another question about <div>!

What i want to do is split the screen in 3 rows:

1.header
2.middle
3.footer

The header and footer height are 50px each, and the middle need to be 100% cause we never know his height!

When the page doesn't scroll it's ok but, i've got some problem when the page scroll!

t

Bigjohn
02-17-2004, 04:55 PM
I think you need to define OVERFLOW:auto in your center div.

turb
02-17-2004, 05:04 PM
ohhh thank... i work on this all day long! I'll check OVERFLOW later

:D

Palee
02-19-2004, 09:44 AM
I have almost the same dilemma, only horizontal.

I want the middle "coloumn" to be expanded (and not overflowed) between the fix-width left and right coloumn.

(setting overflow: auto didn't help)

lfs.hsw.hu/gergo/inferno/xx1.htm

lfs.hsw.hu/gergo/inferno/xx.css

turb
02-19-2004, 10:43 AM
Here's the file that works for u!

And if i can give you an advice, your coding syntax perfect according to w3 recommendation!

So, this example work fine for me in IE6

t

Palee
02-19-2004, 11:08 AM
Yeah, good! Thanks!

Really, using the margin parameter that makes it work?

..oh, if i fill the middle section with letters, it runs under the right section. Which is what I wanted to avoid,secondarily.

And what is the goal of 'html,body div#middle' statement?

turb
02-19-2004, 11:17 AM
On my computer, when i fill the middle part, it doesn't run under the right part... it word-wrap!

The goal of 'html,body div#middle' is to position the #middle part base on the body because if we use margin-left and margin-right just on the #middle and set his weight to 100%, you'll have an horizontal scrollbar!

t

Palee
02-19-2004, 11:31 AM
Yes, if i throw spaces between the letters, it word-wraps, as you told.
Thank you, now I can continue my design :)

turb
02-19-2004, 11:33 AM
No problem!

have a good day!

Palee
02-19-2004, 04:56 PM
Still don't get the method of 'html,body div#middle'.

Probably it's because I lack the fundamentals...
Don't know the reason of naming :-/

I have to dig deeper to find some references.