i have an question in CSS:
How i can do that:
When the green div has (auto) 500px height for the content the red got the same.
And when the red has (auto) 700px height for the content the green got the same.
Both have any content then i use auto height.
So how i can do the green has the same width as red and red too but whit different content whit "height: auto;"?
First, read this excellent article. Then, check out the fiddle:
http://jsfiddle.net/UnsungHero97/qUT3d/
HTML
CSS
I would just wrap both DIVS, inside another div, and have them bump up on the parent DIV, then resize the parent
Something like this.... then use CSS to format them
some other solutions could be listed here http://www.ejeliot.com/blog/61
http://codepen.io/micahgodbolt/pen/FgqLc
Ideally you'd set a min-height on both cells, or as the answer by @Taeeril correctly suggest use javascript to equal out the heights.
Here is a solution using table display types http://jsfiddle.net/SebAshton/Pj7gy/