Width screwed up in album view Width screwed up in album view
 

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

Width screwed up in album view

Started by Emsan, August 08, 2009, 03:25:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Emsan

I have a tiny little problem.
The width and tables look perfect everywhere besides in the album view. The width is screwed up and moved to the left on Firefox, on IE7 the album view is screwed up but not the things under it called "slumpmässiga filer". So help, what can I do to fix this?
Oh and by the way, the width is screwed up in the "groups" option too, but I don't bother it much, it's nothing that the users will see.

These are the links to my files:
http://lucyandreneehq.celebfans.net/gallery/themes/lucyandreneehq/style.css
http://lucyandreneehq.celebfans.net/gallery/themes/lucyandreneehq/theme.php
http://lucyandreneehq.celebfans.net/gallery/themes/lucyandreneehq/template.html

And here are some images, first one is Firefox:
http://i25.tinypic.com/jhuj4z.jpg

And here's what it looks like in IE7:
http://i32.tinypic.com/21nkv15.jpg

And here's the link to the problem area:
http://lucyandreneehq.celebfans.net/gallery/index.php?cat=3

I hope someone can help me :)

phill104

A very quick look at your site in Firefox and using the Firebug plugin ( https://addons.mozilla.org/en-US/firefox/addon/1843 ) allowed me to see that you have set a fixed width for one of your tables to 800px. Removing that width sorts out your problems.

I have not got the time right now to look at your theme and edit it but look for something along the lines of

<td colspan="3" class="tableb">
<table cellspacing="1" cellpadding="0" align="center" width="800" class="maintable">


And change that width setting.
It is a mistake to think you can solve any major problems just with potatoes.

Emsan

I have removed all the width's in tables I could find in the template.html file now but nothing happens.
I have firebug too and I see which width you are talking about, I can't find it anywhere though. It's like it's built in and not in my template or something.
Maybe I'm stupid but help lol.

Emsan

I changed the values in the options panel to 100% and now it looks fine. But what if I want it to look the same but be 800px?

phill104

The widths we are talking about are in theme.php.
It is a mistake to think you can solve any major problems just with potatoes.

Emsan

Okay I really wish I knew how to edit posts here.
Anyway, I fixed the width now and everything looks so perfect on Firefox, but IE7 is a pain.
http://lucyandreneehq.celebfans.net/gallery/index.php open that link in IE and you will see the huge space before the categories starts. What's up with that? It's like it's centered and in FF it isn't.

Emsan

Hm okay but in my theme.php it just says this:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.18
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/themes/classic/theme.php $
  $Revision: 4380 $
  $Author: gaugau $
  $Date: 2008-04-12 12:00:19 +0200 (Sa, 12 Apr 2008) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                        </tr>
                        </table>

EOT;
?>


And the last thing is to remove the sorting options.

Anyway the width is solved, but the alignment of the categories in IE7 isn't. Please help with that.

Joachim Müller

We have a strict "one issue per thread" policy that you agreed to respect when signing up. Additionally, you already have tagged this thread as "solved". Locking.