I am working on a 3 column layout with some additional details below the columns.
One of the columns is larger in height compared to the others. I want the remaining two divs to automatically adjust their height to fill up the space next to the taller column (up until the blue div). Since the text will be dynamically loaded, this adjustment needs to work regardless of which column ends up being larger.
Is there a way to achieve this using HTML/CSS alone or would I need to incorporate JavaScript?
This is the relevant part of the HTML code:
<div id="content">
<div id="iconsHolder">
<div id="info">
<div id="info_content">
<p><?php echo img('images/man.png'); ?></p>
<h2>Some guy over here</h2>
<p class="light justify">It doesn't matter what is being said at the moment. Nothing is said here.</p>
</div>
</div>
<div id="comp">
<div id="comp_content">
<p><?php echo img('images/computer.png'); ?></p>
<h2>Computer Development</h2>
<p class="light justify">Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...</p>
</div>
</div>
<div id="story">
<div id="story_content">
<p><?php echo img('images/library.png'); ?></p>
<h2>Story telling</h2>
<p class="light justify">This is another short story.</p>
</div>
</div>
</div>
<div id="details">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy... versions of Lorem Ipsum.
</div>
</div>
This is the relevant part of the CSS code:
#content {
width: 60em;
margin: 0px auto;
}
#info,#comp,#story {
width: 18em;
float: left;
padding-left: 1em;
padding-right: 1em;
padding-top: 2em;
background-color: #DDD;
height: 100%;
}
#info_content,#comp_content,#story_content {
text-align: center;
}
#details {
clear: both;
background-color: #EEF;
padding: 1em;
}