Position of gallery header Position of gallery header
 

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

Position of gallery header

Started by l33Ryan, July 08, 2007, 01:27:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

l33Ryan

Hi, i am having a few very simple issues with coppermine that i would br greatful of the help with.

I have put my own banner on but i can not seem to get it centered. I have tried <center> but it didn't seem to work. Can anyone help me out in what i have done wrong.

www.allriseforlee.net/gallery

Here is my template info...

<!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/all_rise/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
<!-- $Id: template.html 2688 2005-12-04 03:22:35Z donnoman $ -->
</head>
<body>
  {CUSTOM_HEADER}
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="top_panel">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>

<a href="index.php"><img src="themes/all_rise/images/allrise.jpg" border="1" alt="" /></a>

                  <td align="center">{SUB_MENU}</td>

                         
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
              </table>
            </td>

           

  <div id="Menu1" class="topmenu">
    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>{SYS_MENU}</td>
      </tr>
    </table>
  </div>

<h3 align="center">{GAL_NAME} - {GAL_DESCRIPTION}</h3>

  <div style="padding: 5px 20px;">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">{ADMIN_MENU} {GALLERY}</td>
      </tr>

      <tr>
        <td valign="top">
          <div style="text-align:center;">
            <div>
              {THEME_SELECT_LIST}&nbsp; {LANGUAGE_SELECT_LIST}<br />
              {LANGUAGE_SELECT_FLAGS}
            </div>
          </div>
        </td>
      </tr>
    </table>
  </div>{CUSTOM_FOOTER} {VANITY}
</body>
</html>
[Edit GauGau] wrapped the code section into the bbcode-element [ c o d e ] for better readability. Use it in the future! [/Edit]

phill104

Try replacing this
<table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>

<a href="index.php"><img src="themes/all_rise/images/allrise.jpg" border="1" alt="" /></a>


with this

<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
          <tr>

<a href="index.php"><img src="themes/all_rise/images/allrise.jpg" border="1" alt="" /></a>
It is a mistake to think you can solve any major problems just with potatoes.

l33Ryan

thanks but no luck...it is still showing to the left. :-(

Nibbler

The header is not even in a valid location. You can't put it in a <tr> - move it into a <td>

l33Ryan

This is what i have now...but as you can see www.allriseforlee.net it is still on the left side...any suggestions?


<!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/all_rise/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
<!-- $Id: template.html 2688 2005-12-04 03:22:35Z donnoman $ -->
</head>
<body>
  {CUSTOM_HEADER}
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="top_panel">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">

<a href="index.php"><img src="themes/all_rise/images/allrise.jpg" border="1" alt="" /></a>

                  <td align="center">{SUB_MENU}</td>

                         
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
              </table>
            </td>

           

  <div id="Menu1" class="topmenu">
    <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>{SYS_MENU}</td>
      </tr>
    </table>
  </div>

<h3 align="center">{GAL_NAME} - {GAL_DESCRIPTION}</h3>

  <div style="padding: 5px 20px;">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">{ADMIN_MENU} {GALLERY}</td>
      </tr>

      <tr>
        <td valign="top">
          <div style="text-align:center;">
            <div>
              {THEME_SELECT_LIST}&nbsp; {LANGUAGE_SELECT_LIST}<br />
              {LANGUAGE_SELECT_FLAGS}
            </div>
          </div>
        </td>
      </tr>
    </table>
  </div>{CUSTOM_FOOTER} {VANITY}
</body>
</html>

Nibbler

My suggestion remains the same - put it in a valid place.