It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Senior Member
|
I have been setting up a simple machines forum for one of my websites and I am having alot of trouble centering the menu with the rest of the forum.
The forum is located here: Mercness Enterprises Forum - Index And this is the bit of code for the menu. Code:
<div class="menubar" style="width:780px";>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>';
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</tr>
</table>
</div>
|
|
|
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Ontario, Canada
Posts: 1,198
|
Hey Scoooooty, I'm not sure how to answer this but you should join SMF Users Community and post your question there. That's a preCharge sponsored forum about SMF forums and there are a lot of smf webmasters there that share information.
Hope that helps, Thanks, Dana
__________________
Dana ~~~ "Do or do not. There is no try"-Yoda The best forum ever: http://www.precharge.net http://feeds.feedburner.com/precharge.gif |
|
|
|
|
|
#4 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 26
Posts: 755
|
@ scooty,
what is the menubar class in the stylesheet. Please post that
__________________
Ajay D'Souza Techtites - Your daily dose of all things Tech! MegaThemes | Sir Arthur Conan Doyle | I Sent This WebberZone Domains |
|
|
|
|
|
#5 (permalink) |
|
Senior Member
|
For one, is this your coding or the coding from that ugly ass DilberMC theme?
Code:
<div style="width: 100%; align="right" padding-top: 4px;" class="topbar2"> Code:
<div style="width:100%;text-align:right;padding-top:4px;" class="topbar2"> Code:
<div style="width:100%;text-align:center;">
<div class="menubar" style="width:780px;">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>';
// Shouldn't there be a containing div here?
// I know in the template files, the tab menu is started off with it's own table.
// Here, you've got like this:
// div/div/table/tr/table/tr/td/ which, that wont work.
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</tr>
</table>
</div>
</div>
__________________
"The real hell is your life gone wrong." <---DONATIONS NEEDED, CLICK TO READ MORE---> |
|
|
|
|
|
#8 (permalink) |
|
Senior Member
|
Wtf man... did the guy that made that theme not check it for bugs? I've noticed another coding error. This is in there, somewhere..
Code:
<table border="0" text-align:left; cellspacing="0" cellpadding="0" width="100%">
__________________
"The real hell is your life gone wrong." <---DONATIONS NEEDED, CLICK TO READ MORE---> |
|
|
|
|
|
#10 (permalink) |
|
Senior Member
|
Out of curiousity, try this:
Code:
<div class="hello" style="width:100%;text-align:center;"> <div class="menubar" style="width:800px;"> Code:
<div class="hello" style="text-align:center;"> <div class="menubar" style="width:800px;"> Also remove the width: 100%; from the .menubar class in your style.css.
__________________
"The real hell is your life gone wrong." <---DONATIONS NEEDED, CLICK TO READ MORE---> |
|
|
|