Jump to content


Photo
- - - - -

How to centre my template top menu(like this forum has)


  • Please log in to reply
5 replies to this topic

#1 Noobie

Noobie

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 08 September 2012 - 05:54 AM

How can I centre my top menu? I decided to build my template with soho's template builder function but there is no way to centre the top menu. I'd think this would be an easy, usefull and demanded option when using the template builder option. I tried a bunch of the other templates but none of them would centre! Anways here is template code.. it is a pretty basic looking template but that is all I require at this time. Not being able to centre it is driving me nuts. Thanks for any input.

<!-- This file created with the Soholaunch Template Creator -->






<head>
<title>Template Builder Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>

<div class="bgcol" style="width: 810px;">
<table id="head_table" width="780px" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD class="bgcol" align="left" valign="top">
<img id="main_img" src="blast_blue-sun.jpg">
</TD>
<TD id="main_imgBG" class="bgcol" style="background-repeat: no-repeat;padding:10px 0px 0px 10px" width="100%" align="center" valign="top" background="sun-blue.jpg">
<table cellpadding="0" cellspacing="0" width="395">
<tr>
<td>
</td>
<td id="title" valign="top" class="pound_logotxt">#LOGO#</td>
</tr>
<tr>
<td id="slogan" colspan="2" class="tagline">#SLOGAN#</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" valign="top" colspan="2" class="navigation">#HMAINS#</td>
</tr>
<tr>
<td valign="top" id="side_menu_light">
<div id="side_menu_display">
#VSUBS#
</div>
</td>
<td id="content" width="100%">
#CONTENT#
</td>

</tr>
<tr>
<td align="center" height="40" colspan="2" class="footerNav">#TMENU#</td>
</tr>
</table>
</div>

</body>
</html>

#2 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 08 September 2012 - 12:37 PM

You need to make that change in the index.html file of the template.
Not the custom.css file.
You will be looking for the #HMAINS# tag.
dresswell

 Free Soholaunch Hosting
Soholaunch Pro or Soholaunch Ultra Free with Hosting.
Check out our soholaunch hosting if your tried others

and were disappointed with your host or there support.
Get the help you need to build your website today.

Now offering a 99cent 1st. month Trial Offer.
Easy Website Maker


#3 Noobie

Noobie

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 08 September 2012 - 08:15 PM

Oh. Thats why there was so much code.. I was messing around with the other templates in the right place but I must have clicked on the wrong option for this one. Anyways I reupped the code above. I found the #HMAINS# tag but how do I centre the template?

Thanks again.

#4 dresswell

dresswell

    Soho Dog

  • Administrators
  • 3,408 posts
  • LocationU.S.A.

Posted 08 September 2012 - 08:23 PM

Change this line:
<td width="100%" valign="top" colspan="2" class="navigation">#HMAINS#</td>
to:
<td width="100%" valign="top" align="center" colspan="2" class="navigation">#HMAINS#</td>
dresswell

 Free Soholaunch Hosting
Soholaunch Pro or Soholaunch Ultra Free with Hosting.
Check out our soholaunch hosting if your tried others

and were disappointed with your host or there support.
Get the help you need to build your website today.

Now offering a 99cent 1st. month Trial Offer.
Easy Website Maker


#5 Noobie

Noobie

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 09 September 2012 - 03:57 AM

That makes my content pages centre not the banner part of the page. I want it to look like this

backround-webpage-backround

not

webpage-backround

There you can see what I mean. See how it says homepage at the top? That is all that centered. I want the page to be centered, right now it is at the left side of the page.

As always thanks for any help.



#6 Noobie

Noobie

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 September 2012 - 08:34 AM

Well I figured out how to do it! I called my brother in law who happens to be a web designer and within 5 minutes voila! I am not sure what he did but w/e that really doesn't matter anymore. Something about doing it the old school way because the new age way didn't work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users