How can I make CPG only 512 pixels wide? How can I make CPG only 512 pixels wide?
 

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

How can I make CPG only 512 pixels wide?

Started by Peter Palm, March 06, 2006, 09:31:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Peter Palm

Hey guys, I'm new to the forum, but a CPG user for years now :-)

I'm wondering how I can get CPG to be only 512 (not wider) pixels or smaller?
I changed a lot, but somehow the page is always to wide for its frame.

See: http://weer.bommeltje.nl   
Click "Fotogalerij" in the menu.

The width of the main table is set to 100% (but even when I change that to lets say 60%, the page is still to wide).

Does anyone know how to reduce the width, and where to change that?
Or maybe someone have a theme for me that's less wide than 512 pixels?
Peter

Joachim Müller


Peter Palm

Indeed, it looks fine in Firefox  ???
In IE the page is show 'wrong' (see image).
Peter

Joachim Müller

hm, that's one of the reasons why Iframes are so bad. Try modifying the <iframe> tag attributes. IE seems to do something non-standards-compliant. Another place to look into is coppermine's style sheet and template. Hard to say what actually is wrong.

netfalls

Can you sent the source code of your template & page with the Iframe there must be a tag to remove to make it work with IE

Cheers
In my view you cannot claim to have seen something until you have photographed it

Peter Palm

#5
Hi, thanks for the reply.
The template is as follow:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/water_drop/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.9 2005/12/04 03:22:35 donnoman Exp $ -->
</head>
<body>

        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center">
              <h1>{GAL_NAME}</h1>
              <h3>{GAL_DESCRIPTION}</h3><br />
              {SYS_MENU}<br />
            </td>
          </tr>
        </table>
        <img src="images/spacer.gif" width="1" height="15" alt="" />
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">
              {ADMIN_MENU}
              {GALLERY}
            </td>
          </tr>
        </table>

</body>
</html>


I'm not using an Iframe to display CPF 1.44, it is shown in a frameset.
Peter

netfalls

Hi,

There is something wrong in the template if you remove <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> the frameset is working in the right way with IE but this does not solve the problem it's just showing you where to search.
In my view you cannot claim to have seen something until you have photographed it

Joachim Müller

then edit the frameset - paste the code here

Peter Palm

#8
Yahooo, thanks Netfalls and GauGau !!

I removed the first line from the template and now Coppermine is perfectly shown in the frame  ;D
I don't know what the removed line does, but it was in there in the original template. I did not add that  ???

But, who cares, it works again  :P  ;D
Peter

Nibbler

For a frameset you need to use the frameset DTD, not the transitional.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">