1

The thing I want to make

Basically what I want to make is two divs that only affects height on one side.

  1. If contents of div B expands, div A expands and matches height of div B,

  2. but if contents of div A expands, div B doesn't expand and div A makes scroll bar instead.

1 was easy by using display flex, but I couldn't find how to fix height of div A base on height of div B while div B is expandable.

Is there any way I can solve this by pure css?

west sea
  • 11
  • 1

0 Answers0