Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 02-22-2009, 08:31 AM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HTML align help needed

Hi everyone

I need a bit of help with aligning some banners in my forum please.

What I am trying to do is to get the banners to be placed on the far right next to the last post column. I tried these two different pieces of code in the Forum Description box:

<br>
<td align="right"><A HREF="http://www.ecoaquatics.co.za" target="_blank"><IMG SRC="/banners/ecoaquaticsbanner.gif" border="0"></A></td>

and

<br>
<div align="right" width="100%" style="text-align: right"><A HREF="http://www.ecoaquatics.co.za" target="_blank"><IMG SRC="/banners/ecoaquaticsbanner.gif" border="0"></A></div>

As you can see on this page, the first 3 banners currently sit right next to the end of the text, how do I get them to move all the way to the right?

Thanks.
Reply With Quote
  #2  
Old 02-22-2009, 12:04 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<div width="100%" style="text-align: right; float: right;"><a href="http://www.ecoaquatics.co.za" target="_blank"><img src="/banners/ecoaquaticsbanner.gif" border="0"></a></div>
Reply With Quote
  #3  
Old 02-22-2009, 12:31 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
<div width="100%" style="text-align: right; float: right;"><a href="http://www.ecoaquatics.co.za" target="_blank"><img src="/banners/ecoaquaticsbanner.gif" border="0"></a></div>
Thanks bananalive but it didn't work, the banner is still on the left
Reply With Quote
  #4  
Old 02-22-2009, 01:21 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you could actually use CSS to align it very easy ... i sent you a pm

but you could do it like this
<div style="text-align: right; position: absolute; left: 480px; top: 765px;" width="100%"><a target="_blank" href="http://www.ecoaquatics.co.za"><img border="0" src="/banners/ecoaquaticsbanner.gif"/></a></div>

but you would have to do that ...you might have to play alittle with it. The reason it is not centering now is cause there is nothing for it to center. They way vbuleltin is setup you have to add another column and center that way ..

questions or issues let me know . i am would add that and change the variables for each photo..if you use the same numbers you will have them all on top of eaach other ..or the easier way just put another column and label it for banners and put it there ... there might be another way but if i dont see code or how that template is laid out that is best posibble i could come up with ...without seeing the forum of course.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:10 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.06466 seconds
  • Memory Usage 2,179KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete