Main Menu

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Main Menu

Post by brick » Tue Jan 30, 2007 5:44 am

Ok I made a logo for my message board and I'm trying to move all of the menu links under it because its the width of the table. I've tried everything I can think of. Anyone know how to do this? Brick

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Margins

Post by brick » Tue Jan 30, 2007 5:50 am

I also am trying to center align the main forums table and change the margin size, and again having trouble. Every time I try to do this the content inside the main table border go to 760px but the table stays the same. Anyone know how to do this?

some.lin
Registered User
Posts: 42
Joined: Thu Dec 28, 2006 2:46 pm
Location: Taiwan
Contact:

Re: Main Menu

Post by some.lin » Tue Jan 30, 2007 5:52 am

brick wrote: Ok I made a logo for my message board and I'm trying to move all of the menu links under it because its the width of the table. I've tried everything I can think of. Anyone know how to do this? Brick


what do you mean ?
do you have an example?
religion holy bible - blog pcdiy

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Post by brick » Tue Jan 30, 2007 6:07 am

The logo I made is 760px wide and when I use it all the nav links are positioned to the right of the logo, and you have to scroll the page to the right to use the nav links.

some.lin
Registered User
Posts: 42
Joined: Thu Dec 28, 2006 2:46 pm
Location: Taiwan
Contact:

Post by some.lin » Tue Jan 30, 2007 6:13 am

brick wrote: The logo I made is 760px wide and when I use it all the nav links are positioned to the right of the logo, and you have to scroll the page to the right to use the nav links.


I approximately know what you mean.

Could you copy the code here?
religion holy bible - blog pcdiy

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Post by brick » Tue Jan 30, 2007 6:25 am

Code: Select all

				<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
				<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
				<table cellspacing="0" cellpadding="2" border="0">
					<tr> 
						
                                                                                                                                                                                                                                                                                                                                                                                     <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
						<!-- BEGIN switch_user_logged_out -->
						&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
						<!-- END switch_user_logged_out -->
						</span></td>
					</tr>
					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>
				</table></td>
			</tr>
		</table>

		<br />

some.lin
Registered User
Posts: 42
Joined: Thu Dec 28, 2006 2:46 pm
Location: Taiwan
Contact:

Post by some.lin » Tue Jan 30, 2007 6:37 am

hey, try this:

Code: Select all

<td align="center" width="100%" valign="middle">

<table cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" width="780"></a></td>
    </tr>
    <tr>
        <td><span class="nav">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> </td>
    </tr>
    <tr> 
        <td align="center">
<span class="mainmenu">
&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
&nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>
&nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
&nbsp;<a href="{U_GROUP_CP}class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out --> 
&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp; 
<!-- END switch_user_logged_out --> 
&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>
&nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>
&nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td> 
        </td> 
    </tr> 
</table> 
</td>
religion holy bible - blog pcdiy

some.lin
Registered User
Posts: 42
Joined: Thu Dec 28, 2006 2:46 pm
Location: Taiwan
Contact:

Post by some.lin » Tue Jan 30, 2007 6:39 am

ensure the "<td>","<tr>" tag to be closed.
religion holy bible - blog pcdiy

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Post by brick » Tue Jan 30, 2007 7:51 am

Hey that was close, the code did move the links under the logo. But it messed up the forum table. I tried to play with the code and didn't get anywhere. Anymore ideas? Brick

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Post by brick » Wed Jan 31, 2007 5:26 am

Can any one til me how to move the nav links so that they are below the forum logo instead of beside it. And put them in a streight line.

example: with it centered


Image


FAQ Search Memberlist Usergroups Profile

brick
Registered User
Posts: 11
Joined: Thu May 25, 2006 9:35 pm

Post by brick » Wed Jan 31, 2007 8:03 am

Hey I got it thanks for that help.

mocap69
Registered User
Posts: 25
Joined: Sat Aug 14, 2004 3:49 am
Location: LA, CA, USA
Contact:

Post by mocap69 » Wed Jan 31, 2007 11:43 pm

What is that file you opened?
I want to modify the menu and cannot find the source file.
HELP!!!
Thanks

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra » Thu Feb 01, 2007 1:10 am

It's overall_header.tpl.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

mocap69
Registered User
Posts: 25
Joined: Sat Aug 14, 2004 3:49 am
Location: LA, CA, USA
Contact:

Post by mocap69 » Thu Feb 01, 2007 3:57 am

AWESOME!!
Thanks for the assist!!

Locked

Return to “[2.0.x] Styles Development & Discussion”