[Solved]: CPM fetch code alters page allignment [Solved]: CPM fetch code alters page allignment
 

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

Main Menu

[Solved]: CPM fetch code alters page allignment

Started by arghtard, March 20, 2008, 01:10:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arghtard

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!.

arghtard

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.

Joachim Müller

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

arghtard

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>

Nibbler

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

arghtard