I am facing an issue where as my table row increases in height, I want the div inside it to automatically adjust its height accordingly.
Currently, the height of my div is always set to 0
.
I have tried using height: inherit
, but it only works when the parent element's height is explicitly defined. In this case, I cannot specify the exact height of the parent (<td>
) as the content height may vary.
Are there any CSS techniques that can help achieve this, or do I need to use JavaScript for this functionality?