I have two divs inside a parent div (see image below). When the "black" div grows in height, so does the outer "red" div, but I want to make the "green" div to grow as well. How can this be done in css?
You can use the CSS properties table, table-row, and table-cell
. You may need to check if its supported in browsers your targeting though. http://www.quirksmode.org/css/display.html#table
Example: http://jsfiddle.net/2GawC/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With