I have a canvas, I want to show it under a piece of text. The parent div that contains both the text and the canvas has an explicit height of 200px. I want the canvas to just fill in whatever height is left over below the text div, something like:

Ah that makes sense - but what if I don't know the height that the label div will be roughly? Let's say I need to add an unknown number of child divs to it - is there no way to let it grow to whatever height it needs to be, and just have the canvas element fill whatever space is leftover? Thanks
–
user291701Nov 14 '12 at 0:14

You could use JavaScript. Look into JQuery. You could use the .css() method to get the height of the parent div, subtract out the height of the children and then use that to set the height of the canvas. It's more work, but quite flexible. JQuery .css() page
–
EliNov 14 '12 at 0:32