Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2008, 01:37 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I center this?

Hi,

I was wondering if anyone could tell me what I would need to do to center the banner in the middle. Heres is a copy of the code.

Ive tried having a play around but with no luck

PHP Code:
<tr>
    <
td style="text-align: $stylevar[left]; width: 44px;" class="tcat"><img src="$stylevar[imgdir_misc]/block_1.gif" alt="" width="44" height="42"></td>
        <
td class="tcat" style="background-image: url($stylevar[imgdir_misc]/cat_mid.gif); text-align: left; width: 260px;">Block 1</td>
<
td style="background-image:url($stylevar[imgdir_misc]/catbg_mid.gif);"></td>
</
tr>

<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[outertablewidth]align="center">

<
tr>
        <
td class="thead" colspan="2">Title</td>
</
tr>
<
tr>
<
td class="alt1"><align="center">
<
a href="http://www.jdoqocy.com/m6101xdmjdl04253289021593247" target="_blank" onmouseover="window.status='http://www.skype.com';return true;" onmouseout="window.status=' ';return true;">
<
img src="http://www.lduhtrp.net/j0103kpthnl6A8B98EF687BF98AD" alt="" border="0"/></a>

    </
td>
</
tr>
</
table
Attached Images
File Type: jpg 12.JPG (21.1 KB, 0 views)
Reply With Quote
  #2  
Old 08-24-2008, 02:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Notice that you have two columns for Title, but one for the image. Either get rid of the colspan=2 on the title, or add it for the image.
Reply With Quote
  #3  
Old 08-24-2008, 04:11 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks for your reply. Ive jioggled it around a bit so ive now got the following (I had no need for a title!) But still cant get the banner in the center of the table.

This is my code now:

PHP Code:
<!-- Start of Side Menu -->
<
table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<
tr>
<
td valign="top" width="200px">

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






<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0"   >






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




<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[outertablewidth]align="center">

<
tr>
        
</
tr>
<
tr>
<
td class="alt1"><align="center">
<
a href="http://www.jdoqocy.com/m6101xdmjdl04253289021593247" target="_blank" onmouseover="window.status='http://www.skype.com';return true;" onmouseout="window.status=' ';return true;">
<
img src="http://www.lduhtrp.net/j0103kpthnl6A8B98EF687BF98AD" alt="" border="0"/></a>

    </
td>
</
tr>
</
table
Attached Images
File Type: jpg 13.JPG (18.9 KB, 0 views)
Reply With Quote
  #4  
Old 08-24-2008, 04:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your syntax is incorrect, so it's hard to know what is causing the problem. You can't have a row tag without any columns in it. Get rid of that.
Reply With Quote
  #5  
Old 08-24-2008, 04:41 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

Im really sorry, but I dont follow.

Which line do I need to remove?
Reply With Quote
  #6  
Old 08-24-2008, 05:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by powerful_rogue View Post
Hi Lynne,

Im really sorry, but I dont follow.

Which line do I need to remove?
You cannot do this, just remove them:

PHP Code:
<tr
         
</
tr
Actually, looking at your template, is that really what you have? You need to go look at an html coding site. If you have a table, you must have row and column tags. You must put stuff in the columns. The one in post 1 looks fine, but the one in post 3 is totally wrong syntactically.
Reply With Quote
  #7  
Old 08-24-2008, 05:19 PM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah right.

Thats the way the template was coded. Hmmm

Thanks for your help Lynn. I'll have to leave it as it is. I thought it may have just been a quick fix!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03999 seconds
  • Memory Usage 2,266KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete