News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

having a hard time centering my ad

Started by cru, November 10, 2007, 05:23:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cru

hi, i have installed this mod successfully on my Silent wave theme. here's my url www.mydoggy.net
i can't center the ad below the main menu (when using firefox).

i tried this <div align="center">google code</div>

also this <center>google code</center>

and even in my index.template.php, i did this
//Below the menu ads

if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
echo '<div align="center">';
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
       echo '</div>';


i did this edit one by one, it centered the ad when im using IE, but still aligned to the left when i use Firefox.

any idea how i can fix this browser issue?

EDIT: Sometimes i see its centered. sometimes its not..

Gangrel

Quotetry this for centering:


Code:
<div align=center>ad code</div>[

Hi Cru,

I have the same problem on the Bleen theme. I did a search and noticed someone else had this prob and Bigguy advised the above. I notice it is the same as what you wrote but minus the speech marks. I dont know if that makes any diff as I am a complete newbie.

What is the name of the file that I should be editing to put the line <div align=center>ad code</div>[[/
into?? And whereabouts should it go??


cru

you don't have to edit any file, just go to admin>ad management> add ads

then paste

<div align="center">your google code here</div>

on the space marked as "content"