forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: hpluver88 on June 21, 2006, 12:23:04 am

Title: Centered Categories
Post by: hpluver88 on June 21, 2006, 12:23:04 am
This is my first time using a Coppermine gallery and attempting to create a theme for it.

My goal is to have the gallery centered, and I achieved that--to a certain extent. Now all the main categories are centered as well ("Movies" "Merchandise" "Scans" etc).
This is how it looks like so far:
http://www.rupertgrintgallery.com/coppermine/

What I'd like to do is have the main categories aligned to the left such as this site:
http://www.robertpattinson.org/gallery/index.php

The following is the coding I have so far in the template.html file:
Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
<link rel="stylesheet" type="text/css" href="themes/custom1/style.css" />
{META}
<script type="text/javascript" src="scripts.js" ></script>
<!-- $Id: template.html 2808 2006-02-05 22:35:48Z gaugau $ -->
</head>
<body>
{CUSTOM_HEADER}
<CENTER>
<table width="747px" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border: 1px solid #CCD7E0; background-color: #FFFFFF;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center"> <img

src="http://img363.imageshack.us/img363/5325/rggheader7jk.jpg"></center> <br/>


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

              {GALLERY}
              <div style="text-align:left;">
              <div>
           {LANGUAGE_SELECT_FLAGS}<br />
           {THEME_SELECT_LIST}{LANGUAGE_SELECT_LIST}
           </div>
           </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  {CUSTOM_FOOTER}{VANITY}
</body>
</html>

Any help would be greatly appreciated!

Title: Re: Centered Categories
Post by: Sami on June 21, 2006, 10:47:29 am
I thnik you solved it...did you?
please post your solution for others
Title: Re: Centered Categories
Post by: Gizmo on June 21, 2006, 12:22:03 pm
Yea... I checked last night after a few beers ;D and couldn't see any problems. Everything looked as it should so I thought you had either fixed it or I was seeing things. Looks like my eyes were working after all.  :P
Title: Re: Centered Categories
Post by: hpluver88 on June 21, 2006, 04:05:40 pm
Really? That's strange because this is how it looks like for me:
http://img204.imageshack.us/img204/7317/coppermine9ly.jpg

I'm looking for all the categories/text with the dark green background to be aligned to the left, and they're still centered. I really doubt I solved the problem unless it's only showing up like that for me! lol
Title: Re: Centered Categories
Post by: Paver on June 21, 2006, 04:14:32 pm
The categories look left-justified for me in both Firefox and IE.  They do *not* look like your screencap.

I thought this thread (with its solution) might be related to your issue until I saw no problem in IE:
http://forum.coppermine-gallery.net/index.php?topic=32513.0 (http://forum.coppermine-gallery.net/index.php?topic=32513.0)

In other respects, it's similar in that you have categories with no immediate albums looking funky to you in IE.  So you might try the solution from there.  (Note that the correct solution is near the end of the thread.)
Title: Re: Centered Categories
Post by: Sami on June 21, 2006, 04:48:11 pm
Now I see the issue
you should change your default theme to "custom1" instead of water_drop
guys check this out:
http://www.rupertgrintgallery.com/coppermine/index.php?theme=custom1
Title: Re: Centered Categories
Post by: hpluver88 on June 21, 2006, 04:52:11 pm
*slaps forehead*

Well, it's working now! Both Paver's and vmossavari's suggestions seemed to have worked--thanks a lot everyone!  :)
Title: Re: Centered Categories
Post by: Sami on June 21, 2006, 04:52:25 pm
now you solve it