tags:

views:

12

answers:

1

http://www.jsfiddle.net/Zn4BH/1/

HTML:

<div  id="divOutput">
    <h1>Output</h1> 
    <div id="divButtons">
        <button>One</button>
        <button>Two</button>
    </div>
    <textarea name="tarOutput" id="tarOutput">[Text]</textarea>
</div>

CSS:

#divOutput {
    border: 2px solid #000;
    background-color: #f90;
    padding: 10px;
    height: 300px
}

#divButtons {
    border: 2px solid #000;
    background-color: #fb0;
    margin-top: 10px;
    padding: 2px;
}

textarea {
    margin-top: 10px;
    width: 100%;
    height: 100%;  /* ??? Doesn't seem to work */
}
+1  A: 

Take a look at this post: http://stackoverflow.com/questions/485827/css-100-height-with-padding-margin

Diodeus
Good reference. Thanks to your reference question I see I can set the textarea top margin to say "200px" (and other margins to 10px). But I still want the top of the textarea to automatically be positioned after the h1 and #divButtons elements, not at a fixed position. Maybe I'll look at jQuery...
Stan