title: Float 2 divs in a parent div and arrange such divs one below another
body: <p>I am creating a web page with 3 columns. The middle column is where all the content goes. The content I want to enter has to be in the format of left aligned image, followed by some text next to the image. And this flows throughout the column with different images and corresponding text. Since my layout is a div based layout, I have put a main div (page_content )for the column. Then the heading (h4) and below the heading I have entered another div. This div in turn contains individual divs that are nested with div (class photo) for image and div (class lat_art) for text. The HTML code and CSS code has been given below. My issue is that the first image and text comes up, but subsequent get lined up vertically below the first text i.e occupies only the 50% of the div and floats right, pushing its corresponding text below it in the same 50% space. Should I specify a height for individual divs, probably the image is bigger than the text. But if I do that won’t my code become static. I want it to be dynamic. Please help. </p>
  
  <h2>HTML Code</h2>
  
  <pre><code>&lt;div id="page_content"&gt; 
  &lt;h4 class="center_cap"&gt;LATEST ARTISTS&lt;/h4&gt; 
  &lt;!--Div for the content begins here--&gt; 
  &lt;div&gt; 
  &lt;!--Individual div begins here--&gt; 
  &lt;div &gt; 
  &lt;div class="photo"&gt; 
  &lt;img src="Images/guitar.jpg" alt="guitar"/&gt; 
  &lt;/div&gt; 
  &lt;div class="lat_art"&gt; 
  &lt;span class="artist"&gt;ROCK ON&lt;/span&gt; 
  &lt;p&gt; 
  Good news to all the fans of 'Rock On'. Concerts all around the world. 
  &lt;/p&gt; 
  &lt;/div&gt; 
  &lt;/div&gt; 
  &lt;!--Individual div ends here--&gt; 
  
  &lt;!--Individual div begins here--&gt; 
  &lt;div &gt; 
  
  &lt;div class="photo"&gt; 
  &lt;img src="Images/guitar.jpg" alt="guitar"/&gt; 
  &lt;/div&gt; 
  
  &lt;div class="lat_art"&gt; 
  &lt;span class="artist"&gt;ROCK ON&lt;/span&gt; 
  &lt;p&gt; 
  Good news to all the fans of 'Rock On'. Concerts all around the world. 
  &lt;/p&gt; 
  &lt;/div&gt; 
  &lt;/div&gt; 
  &lt;/div&gt; 
  &lt;!--Div for the content ends here--&gt; 
  &lt;/div&gt; 
  </code></pre>
  
  <h2>Code from external Stylesheet</h2>
  
  <pre><code>.photo{ 
  width:48%; 
  float:left; 
  padding-left:2px; 
  } 
  .lat_art{ 
  width:50%; 
  float:right; 
  } 
  </code></pre>