Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fixing spaces in theme *PIC*  (Read 3035 times)

0 Members and 1 Guest are viewing this topic.

Roach

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Fixing spaces in theme *PIC*
« on: July 18, 2004, 01:33:37 am »

Ok heres a pic and code of the template file for my gallery. Im trying to do a few things here, all kinda related. Sorry if it violates the rules for # of questions.

Im trying to make the entire border around the image smaller and inturn it will move the image up higher. Also I was able to remove the space from the banner area to the 'register/login' area but i see the area between 'register/login' and 'album list/ last comments, etc' is still the same. Im hoping to make it a smaller # thus bringing everything up.

Thanks

(http://www.theroachmotel.com/copper.jpg)
Quote
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{lang_dir}">
<head>
<title>{TITLE}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="themes/hardwired/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
$Id: template.html,v 1.9 2004/06/07 09:11:36 caspershadow Exp $
-->
</head>
<body>
<table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="778" height="61" valign="middle" align="right" background="themes/hardwired/images/hw_01.gif">
        <table width="73%" height="32" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="94%" height="22" valign="bottom" align="right"><span

class="gal_name">{GAL_NAME}</span></td>
            <td width="6%"></td>
          </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td height="100%" align="center" valign="top" background="themes/hardwired/images/hw_02.gif"><table

width="100%" height="100%" border="0" align="center">
        <tr>
          <td valign="top" align="left">
              <table width="725" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="108" valign="top"><div align="right">{MAIN_MENU1}</div><br />
                    {MAIN_MENU2}<br />
                   
                    {ADMIN_MENU} {GALLERY}</td>
                </tr>
              </table><div

align="center">{LANGUAGE_SELECT_FLAGS}<br>{THEME_SELECT_LIST}&nbsp;{LANGUAGE_SELECT_LIST}</div><br />
              <br />
            </td>
        </tr>
      </table></TD>
  </tr>
  <tr>
    <td valign="bottom"><img src="themes/hardwired/images/hw_03.gif"></td>
  </tr>
</table>
</body>
</html>

« Last Edit: July 18, 2004, 01:43:30 am by Roach »
Logged

Roach

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fixing spaces in theme *PIC*
« Reply #1 on: July 18, 2004, 02:36:27 am »

I noticed I could change in the config the width of the main table. I made this 550 and it now has basically no border on the left and right. Now to just do the same for the top and bottom of the pic
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Fixing spaces in theme *PIC*
« Reply #2 on: July 18, 2004, 01:04:40 pm »

Moving the menu on the left up would break the gallery when logged in, as there would not be enough room, see the screenshot below (ignore the basket button).
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Roach

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fixing spaces in theme *PIC*
« Reply #3 on: July 18, 2004, 06:52:47 pm »

Im not looking to put on the same line. Rather

See the space between the top banner and login/register etc on your pic.  Now see the one on my pic? I took the space away. It appears there is a space (maybe 10-20pixels) between the 2 menus. I just wanna make them as close to 0. THey wont overlap or anything just tight between the two. Not to mention I cut out a lot the menu so I probably could put them on the same line but not going to.

As for the border any ideas? Again I made the sides smaller just tryng to make the top and bottom smaller or gone to bring the pic up. Thanks
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Fixing spaces in theme *PIC*
« Reply #4 on: July 18, 2004, 07:38:28 pm »

Removing all the line breaks (<br> or <br />) from the template.html results in this, if that helps.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Fixing spaces in theme *PIC*
« Reply #5 on: July 18, 2004, 07:51:20 pm »

Also, to remove the space above the picture in the display, open your style.css, and change the properties for '.imageborder'
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Roach

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fixing spaces in theme *PIC*
« Reply #6 on: July 18, 2004, 09:12:05 pm »

awesome guys. I think I got everything fixed.  Took out the 2 breaks and made image border have 0 margins.  Only thing then was I had to run the main table width back to 100% or else it looked kinda weird so now the blue border is on the sides but thats fine, it doesnt look out of place and evrything is much higher up now

The reason I wanted this was so on a 1024x768 monitor you could see everything without scrolliing. The title, menus, picture, and comment line. It barely fits but it does =P
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.