How can I ensure that two divs placed side by side will always have the same height, even when one of them changes based on content, using only CSS?
I created a fiddle to demonstrate. I want both the red and blue divs to have equal heights...
Below is the CSS code:
#wrapper {
width: 300px;
}
#left {
width: 50px;
background: blue;
float: left;
height: 100%; /* unfortunately, this does not work... */
}
#right {
width: 250px;
background: red;
float: left;
}