I hava a page with two columns. I would like to textarea height mimic left column height. Left column is short when webpage loads, but when user starts expanding various properties (checkboxes + dropdownmenus) it grows based on hidden divs. But my textarea is still small in right column and making it staticly bigger does not look good. I want it to grow per left column height. Not sure how to achieve that.
EDIT: Once height: 100%; was added to textarea it solved the issue with columns growth. But I ran into another two issues.
- Textarea in right column overlaps that column on page load. When I try to resize, it suddenly jumps to the column properly. Weird behavior. here is the pic - textarea overlaps column
- Left column context is not aligned properly with right. How I am going to align or justify context of both columns so they end up like this: here is the pic - final look
My CSS:
body { height: 100%; position: relative; background: #000000; color: #66adff; font-size: 105%; font-family: serif, Arial, Helvetica } .column { border: 5px solid #333; } .container{ display: flex; } .columnleft { width: 45%; padding: 10px; display: table-cell; } .columnright { width: 45%; padding: 10px; display: table-cell; } textarea.out {width: 100%; height: 100%; box-sizing: border-box;} EDIT 2: Issue 1 - I had text inside the column which pushed area down Issue 2 - all was fixed with proper padding
Thanks all for replies.
floatif you applyflex? Why not usingcss-gridthat can do this without scripting?