TCH-Thomas Posted July 7, 2005 Posted July 7, 2005 I am trying to center the menu (Album list, FAQ, Register...) on http://www.tompasworld.com/animals/index.php so it shows up under the "logo" but I can´t figure out how to do it. I am using the water_drop theme (if relevant). If anyone could have a look I would b more than happy. Quote
TweezerMan Posted July 8, 2005 Posted July 8, 2005 If I understand correctly what you're wanting to do, it looks to me like your menu is displaying to the right of your logo because the logo and the menu are in adjacent table cells within the same table row: <tr> <td><center><a href="index.php"><img src="themes/water_drop/images/animalslogo.gif" alt="" border="0" /><br /></a></center></td> <td width="100%" align="center"> <h1></h1> <h3></h3><br /> <span class="topmenu"> I'd suggest putting the logo and menu into separate table rows - ending the table row after the logo with a </tr> tag, and starting a new table row (with a <tr> tag) for your menu: <tr> <td><center><a href="index.php"><img src="themes/water_drop/images/animalslogo.gif" alt="" border="0" /><br /></a></center></td> </tr> <tr> <td width="100%" align="center"> <h1></h1> <h3></h3><br /> <span class="topmenu"> Quote
TCH-Thomas Posted July 8, 2005 Author Posted July 8, 2005 Thanks David. <_>However, now there´s no menu at all. Here´s the whole template that I am using (with your changes included as I understood them). ><!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/water_drop/style.css" /> <script type="text/javascript" src="scripts.js"></script> <!-- Coppermine version: 1.3.3 $Source: /cvsroot/coppermine/stable/themes/water_drop/template.html,v $ $Revision: 1.5 $ $Author: gaugau $ $Date: 2005/04/19 03:17:15 $ --> </head> <body> <table border=0 cellpadding=0 cellspacing=0 align="center"> <tr> <td><center><a href="index.php"><img src="themes/water_drop/images/animalslogo.gif" alt="" border="0" /><br /></a></center></td> </tr> <tr> <td width="100%" align="center"> <h1>{GAL_NAME}</h1> <h3>{GAL_DESCRIPTION}</h3><br /> <span class="topmenu"> {LANGUAGE_SELECT_FLAGS}<br>{LANGUAGE_SELECT_LIST} {THEME_SELECT_LIST} </td> </tr> </table> <img src="images/spacer.gif" width="1" height="15" /><br /> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> {ADMIN_MENU} {GALLERY} </td> </tr> </table> </td> </tr> </table> </body> </html> Quote
TweezerMan Posted July 8, 2005 Posted July 8, 2005 The HTML looks okay, and even if it wasn't, it shouldn't have made the menus disappear. If you remove the </tr> and <tr> tags you added, do the menus come back? Quote
TCH-Thomas Posted July 8, 2005 Author Posted July 8, 2005 Tried that now. Unfortunately the logo is now on the left on page and no menu. Quote
TweezerMan Posted July 8, 2005 Posted July 8, 2005 I compared your code to the original theme template.html - you appear to be missing the code for the actual menu. This is what you say your template has: <td width="100%" align="center"> <h1>{GAL_NAME}</h1> <h3>{GAL_DESCRIPTION}</h3><br /> <span class="topmenu"> {LANGUAGE_SELECT_FLAGS}<br>{LANGUAGE_SELECT_LIST} {THEME_SELECT_LIST} </td> This is what's in the original template:<td width="100%" align="center"> <h1>{GAL_NAME}</h1> <h3>{GAL_DESCRIPTION}</h3><br /> {MAIN_MENU}<br /> {LANGUAGE_SELECT_FLAGS}<br>{LANGUAGE_SELECT_LIST} {THEME_SELECT_LIST} </td> Side note: You also should have a closing </span> tag in there somewhere. Quote
TCH-Thomas Posted July 8, 2005 Author Posted July 8, 2005 Yes. That was one thing I was wondering about but forgot to ask. In your code above there was a So I thought you ment that I should replace the{MAIN_MENU} with it. Sorry for the confusion. <_> Will try the last solution now. <_> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.