Having a scrolling textbox with height determined by another box
xxangel
Regular
Posts: 43
Joined: 2006-03-14
Posted: Thu, 2008-07-24 13:52
I want to do something that I have no idea where to start.
I want to have two boxes, side by side with equal height. When the box on the left has more text, the box expands. The box on the right expands with the box on the left. However, the box on the right is a scrolling box (so, overflow: auto).
I have no idea how to specify that the height of the box follows the height of the box on the left--I only know how to specify the height in terms of pixels or percentages (against the entire page).
Does anyone have any idea how to do this?
I would also be fine doing this in tables, except that in the current versions of firefox, you can't get an "overflow: auto" with a cell (the cell just expands).
Regular
Posts: 43
Joined: 2006-03-14
Posted: Thu, 2008-07-24 13:52
I want to do something that I have no idea where to start.
I want to have two boxes, side by side with equal height. When the box on the left has more text, the box expands. The box on the right expands with the box on the left. However, the box on the right is a scrolling box (so, overflow: auto).
I have no idea how to specify that the height of the box follows the height of the box on the left--I only know how to specify the height in terms of pixels or percentages (against the entire page).
Does anyone have any idea how to do this?
I would also be fine doing this in tables, except that in the current versions of firefox, you can't get an "overflow: auto" with a cell (the cell just expands).
I appreciate any help!