The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ads not centered
Hey all. I was wondering if you could help me to get my google ads centered in my header. Here is how they are positioned right now:
http://www.pb-addict.com You will notice they are aligned to the left but I want them centered. Here is the code that I am using. Code:
<if condition="$show['guest']"> <!-- Sponsor Ads --> <br /><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="728" align="center"> <tr> <td class="tcat" colspan="6"><phrase 1="$vboptions[bbtitle]">Sponsors</phrase></td> </tr> <tr> <td bgcolor="#000000" colspan="6"> <div align="center"> <script type="text/javascript"><!-- google_ad_client = "removed"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2006-11-01: removed google_ad_channel = "9295759247"; google_color_border = "000000"; google_color_bg = "000000"; google_color_link = "ffffff"; google_color_text = "ffffff"; google_color_url = "ff9400"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </td> </tr> </table> <br /><br /> <!-- Sponsor Ads Ends --> </if> I just realized, this only happens in FireFox. In Internet Explorer its fine.. Any ideas what is wrong here? |
#2
|
|||
|
|||
width try at width="100%" cause right now in firefox it looks terrible
|
#3
|
|||
|
|||
Not really a programming question (try the design forum)but.....
Here's how the code should be: HTML Code:
<if condition="$show['guest']"> <!-- Sponsor Ads --> <br /><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="tcat" colspan="6"><phrase 1="$vboptions[bbtitle]">Sponsors</phrase></td> </tr> <tr> <td align="$stylevar[center]" bgcolor="#000000" colspan="6"> <script type="text/javascript"><!-- google_ad_client = "removed"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2006-11-01: removed google_ad_channel = "9295759247"; google_color_border = "000000"; google_color_bg = "000000"; google_color_link = "ffffff"; google_color_text = "ffffff"; google_color_url = "ff9400"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> <br /><br /> <!-- Sponsor Ads Ends --> </if> |
#4
|
|||
|
|||
thanks for your help guys but it turns out wrapping the whole thing in <div align="center"> </div> solved the problem.
|
#5
|
|||
|
|||
that table dont look to well at width="730" why not do it width="100%" like your other tables cause it dont look right in firfox
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|