forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: peakoverload on June 19, 2004, 09:10:57 pm

Title: [Solved]: Change Width of Terms & Conditions Table
Post by: peakoverload on June 19, 2004, 09:10:57 pm
I'm running CPG 1.3 in an iframe in the Mambo CMS.

So far the gallery fits properly into the page at all resolutions with the exception of the Terms & Conditions. When displayed at 800x600 part of the page is cut off.

If I do a view source code (by right clicking on the Terms page) I can see the following code:

Code: [Select]
<!-- Start standard table -->
<table align="center" width="600" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="1"><h2>Terms and conditions</h2></td>
        </tr>
        <form method="post" action="/cpg/register.php">
        <tr>
                <td class="tableb" style="padding: 10px;">
While the administrators of  will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every post. Therefore you acknowledge that all posts made to this site express the views and opinions of the author and not the administrators or webmaster (except for posts by these people) and hence will not be held liable.<br />
<br />

I'm sure that the table align="center" width="600" is the cause of the problem and that if I changed that to width="100%" it would all be fixed but, using Dreamweaver, I have searched every single CPG file for width="600" and drew a total blank!!

Does anyone know where this width="600" is coming from and/or how I make the terms table either be 100% or smaller than it currently is?
Title: Re: Change Width of Terms & Conditions Table
Post by: Joachim Müller on June 20, 2004, 03:51:30 pm
Go to coppermine config, "Width of the main table (pixels or %)". What does it say, and what theme are you using? Some themes come with a fixed width. To tell you more, please post a link.

GauGau
Title: Re: Change Width of Terms & Conditions Table
Post by: peakoverload on June 20, 2004, 07:24:34 pm
Hi GauGau,

Okay, in CPG Config "Width of the main table (pixels or %)" is set to 100% and I'm using the Classic theme. I've checked the template.html for this theme but everything there is also set to 100%

My site is here www.photos-shop.co.uk (http://www.photos-shop.co.uk) The site is still in development and is only at this URL for beta testing.
Title: Re: Change Width of Terms & Conditions Table
Post by: Casper on June 20, 2004, 07:51:31 pm
Check also your 'Width of the table for file display (pixels or %)' in config.
It is 600px by default, but I find 90% works well for me.
Title: Re: Change Width of Terms & Conditions Table
Post by: peakoverload on June 20, 2004, 08:51:40 pm
Thats the baby!!!

Changed it to 90% and it works a charm now  ;D ;D ;D

Cheers guys you da best!