I have a question in CSS:
How can i do this:

When the green div has a (auto) height of 500 pixels for the content, the red color becomes the same.
And when the red (auto) height is 700 pixels for the content, the green color becomes the same.
Both have any content, then I use auto height.
So, how can I make green the same width as red and red, but with different content with "height: auto" ??
source
share