title: How to position three div elements side by side across a webpage
body: <p>Hi all Iam trying to build a website that has a 'div container' and within this div three main columns, 'div left', 'div middle' and 'div right'. </p>
  
  <p>I have tried to set the width for each column to 25%, 50%, and 25% respectively - also floated all divs left - with two images either side of the table (div middle). Unfortunately the three divs are on separate lines instead of side by side. Has anyone got any tips or advice for this? Any help would be appreciated.</p>
  
  <p>Note: The middle div (holding the table) is populated as events are added.</p>
  
  <pre><code>&lt;div id = "container" style = "width:100%"&gt;
  
  &lt;div id ="left" style = "float: left; width: 25%;"&gt;
      &lt;?php echo $this-&gt;Html-&gt;image('/img/sideart.jpg'); ?&gt;
  &lt;/div&gt;
  
      &lt;div id = "middle" style = "float: center; width: 50%; height: 100%;"&gt;
      &lt;table cellpadding="0" cellspacing="0"&gt;
      &lt;tr&gt;
  
      &lt;/tr&gt;
  
      &lt;?php
      foreach ($events as $event): ?&gt;
  
      &lt;tr&gt;
          &lt;td class="actions"&gt;
  
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;?php endforeach; ?&gt;
      &lt;/table&gt;
      &lt;/div&gt;
  
      &lt;div id = "right" style = "float:right; width: 25%;"&gt;
          &lt;?php echo $this-&gt;Html-&gt;image('/img/sideart2.jpg'); ?&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>