Here's the specific situation I am facing: I want the height of Div2 to adjust based on the content of Div3, and the height of Div3 to adapt based on the content in Div2. The height of Div1 is fixed at 500px.
Some of the questions that arise are:
- Is it a recommended approach, given the need for height calculations based on content?
- Can this be achieved using CSS alone?
+-------------+
| DIV1(500px)|
| +-------+ |
| | | |
| | DIV2 | |
| | | |
| | | |
| +-------+ |
| +-------+ |
| | | |
| | DIV3 | |
| | | |
| | | |
| | | |
| | | |
| +-------+ |
+-------------+