Hello everyone, I could really use some assistance here:)
My issue involves having 2 dynamically resizing divs inside a parent div. These divs have widths that range from 460px to 640px (just for example). The overall width of my site spans from 960px to 1300px. When the site is at its full width of 1300px, I want both divs to be on the same line with a width of 640px. And when the site shrinks down to 960px, I want the divs to remain on the same line but with a width of 460px.
The problem I am facing is that as the site gets smaller (resizing the browser window), the divs drop below each other.
Here is the code snippet: http://jsfiddle.net/EKYLe/2/
Below is the HTML structure:
<div class="Content">
<div class="box-container">
<div class="box">
<h2>News</h2>
<p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p>
<ul>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ul>
</div>
<div class="box">
<h2>News</h2>
<p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p>
<ul>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ul>
</div>
</div>
If you notice, when you resize the window, the divs stack vertically instead of staying side by side.
Best regards, Nicklas