title: How to display php image gallery inside a div?
body: <p>My website has two div columns: a vertical navigation menu and main content. I used php to navigate different pages of my website to the main div (<a href="http://coursesweb.net/php-mysql/create-simple-website-php_t" rel="nofollow">similar to this php example</a>)...(eg. index.php?pg=about_us --> get content from /page/about.html). But one of the pages I want to display this gallery (<a href="http://sye.dk/sfpg/" rel="nofollow">http://sye.dk/sfpg/</a>) on the main div. </p>
  
  <p>How to display my gallery correctly in the main div (installed under /pages/gallery/index.php) (eg. width about 700px)? I have the same problem if the navigation menu is pointed to an external website.  (let's say google) The size and charset are not displayed correctly while using div. Thank you. </p>
  
  <pre><code>&lt;?php
    // ...blah blah blah
    $pgname = isset($_GET['pg']) ? trim(strip_tags($_GET['pg'])) : 'index';
    //....
  ?&gt;
  
  // starts html, header and body
  &lt;div class="left_col"&gt;  
    &lt;nav id="navigation"&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="index.php" title="Home"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="index.php?pg=news" title="News"&gt;News&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="index.php?pg=gallery" title="Gallery"&gt;Gallery&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="index.php?pg=donate" title="Donate"&gt;Donate&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="index.php?pg=about_us" title="About Us"&gt;About Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
  
  &lt;section class="main_col clearfix"&gt;         
    &lt;?php                                     
      if ($pgname != 'gallery'){      
          echo file_get_contents('pages/'. $pgname. '.html');     
      } else {
          echo file_get_contents('http://google.com/'); // this doesn't work, and neither work with '/pages/gallery/index.php'
      }
    ?&gt;                    
  &lt;/section&gt;
  </code></pre>