1

I have created fiddle here: http://jsfiddle.net/ozzy/WEGMh/

How it should look is here:

enter image description here

Issue is the left and right hand divs arent showing. I have tried z-index , but it must be something painfully obvious.

My code may be crap too..

The idea is the container height will be flexible. Container width fixed. Header fixed width and height left div will be fixed width and flexible height. right div can just adopt left divs parameters. footer div fixed width and height.

If that makes sense.

2
  • It's not code, but markup. :) Commented Jul 2, 2011 at 1:49
  • cheers generalhenry , i had thought they would assume the height of body. Like a wally... anyhoo cheers for that mate Commented Jul 2, 2011 at 1:54

1 Answer 1

6

The left and right divs are showing, it's just that their height is zero.

They get their height from their content, and as there is nothing in them, the height becomes zero.

The default for a div is to fill up the available width, but not to fill up the available height.

Sign up to request clarification or add additional context in comments.

6 Comments

bugger yep ok, will try something :)
I am such a knob, cant believe I didnt whack content in LOL ! cheers @guffa
@422 - Please be sure to select an appropriate answer. If this answer is appropriate, click the outlined checkmark. :)
@Guffa is there documentation anywhere that explains that clearly?
@422, adding .left, .right { height:100%; } is the simple fix to your jsfiddle, Whether it works in your real situation is another question.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.