coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: arghtard on March 20, 2008, 01:10:02 AM

Title: [Solved]: CPM fetch code alters page allignment
Post by: arghtard on March 20, 2008, 01:10:02 AM
Hi I have placed the CPMfetch code on my front page but this for some reason causes the page to be misaligned with my other pages. Its not a huge problem but its rather irritating.

My website is www.ianjarviscg.com

Notice how when moving to one of the other pages they are aligned slight further to the right.

If anyone knows the solution it would be greatly appreciated!.
Title: Re: CPM fetch code alters page allignment
Post by: arghtard on March 20, 2008, 01:14:11 AM
I should say I've spent quite some time trying to figure this out myself but nothing I've tried seems to work. Needless to say I have very limited knowledge in the area of making websites so I may have missed some thing very obvious.
Title: Re: CPM fetch code alters page allignment
Post by: Joachim Müller on March 20, 2008, 08:26:51 AM
Maybe you should post the code you used if you expect help
Title: Re: CPM fetch code alters page allignment
Post by: arghtard on March 21, 2008, 12:16:07 AM
That's a good idea...

Quote<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Pragma" content="no-cache" />
<title>Ian Jarvis CG.com</title>

<link href="gallery/themes/ijtheme/style.css" rel="stylesheet" type="text/css" />

</head>
<body>
<!--Wrapper begin -->

<div class="iecenterhack">
  <div class="width">
   
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td background="gallery/themes/ijtheme/images/lbg.gif" style="width:16px;"></td>
        <td bgcolor="#333333" align="center">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="banner">
                  <tr>
                    <td height="80" align="center" valign="top" background="gallery/themes/ijtheme/images/header_top.jpg" style="padding-right:10px;">&nbsp;</td>
                  </tr>
          </table>
         <div class="divbg">
       <div style="width:96%;text-align:center;padding-top:60px;">
   <table class="drop" width="90%" border="0" align="center" cellpadding="1" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#000000">

  <tr>
    <td width="33%" class="mainpages"><div align="center"><a href="reel.html" target="_self">SHOWREEL</a></div></td>
    <td width="33%" class="mainpages"><div align="center"><a href="gallery/index.php" target="_self">GALLERY</a></div></td>
    <td width="33%" class="mainpages"><div align="center"><a href="contact.html" target="_self">CONTACT</a></div></td>
  </tr>
</table>
</div>
         <div align="center">
           
           <span class="mainpage_intro">Welcome to my website. Below are some samples of my work. You can view my showreel, see more images and read my contact details and CV using the links above.             </span>

<?php
  include_once "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $options = array("imagestyle" => "cmgfetch", "tablestyle" => "cmgfetchb", "imagesize" => "int", "subtitle" => "<br>");
  $objCpm->cpm_viewRandomMediaFrom("album=7", 3, 1, $options);
  $objCpm->cpm_close();
?>
         </div>
         </div>
       </td>
        <td background="gallery/themes/ijtheme/images/rbg.gif" style="width:16px;"></td>
      </tr>
    </table>

  </div>
</div>
</body>
</html>
Title: Re: CPM fetch code alters page allignment
Post by: Nibbler on March 21, 2008, 10:36:40 AM
That's because of the scrollbar on the longer page.
Title: Re: CPM fetch code alters page allignment
Post by: arghtard on March 21, 2008, 11:02:00 PM
Haha ah right, thanks  ::)