Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: CPM fetch code alters page allignment  (Read 6743 times)

0 Members and 1 Guest are viewing this topic.

arghtard

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Solved]: CPM fetch code alters page allignment
« 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!.
« Last Edit: March 21, 2008, 11:48:33 pm by Nibbler »
Logged

arghtard

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CPM fetch code alters page allignment
« Reply #1 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPM fetch code alters page allignment
« Reply #2 on: March 20, 2008, 08:26:51 am »

Maybe you should post the code you used if you expect help
Logged

arghtard

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CPM fetch code alters page allignment
« Reply #3 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>
Logged

Nibbler

  • Guest
Re: CPM fetch code alters page allignment
« Reply #4 on: March 21, 2008, 10:36:40 am »

That's because of the scrollbar on the longer page.
Logged

arghtard

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CPM fetch code alters page allignment
« Reply #5 on: March 21, 2008, 11:02:00 pm »

Haha ah right, thanks  ::)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.