I've installed the Ad module. I have banner ads displayed on the site (see http://www.lonestarfishing.org ).

I'd like to get the banners centered. I've read a few posts on here related to my question, but I don't quite understand which file handles this piece of code.

Any help would be appreciated.

Thanks

Comments

andyf’s picture

Try adding this css.

.image-advertisement img
{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

hth

aitala’s picture

I don't think this will work - I see no such class...

Eric

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485

andyf’s picture

That's funny, it's taken straight from my site, and I don't remember doing anything special to generate the class...

ncswi’s picture

Add this where?

THanks.

================
Northern Computer Service, LLC
P.O. Box 1367
Woodruff, WI 54568
715.892.0530
715.358.9806
info@ncswi.com
www.ncswi.com

aitala’s picture

You'll probably need to tweak the theme or use the CSS Injector module - http://drupal.org/project/css_injector - to insert a style to center the ad's DIV (id = group-id-tids-59) or table (id = block-ad-59)...

Eric

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485

ncswi’s picture

I had to edit the page.tpl.php file and set the DIV align="center".

================
Northern Computer Service, LLC
P.O. Box 1367
Woodruff, WI 54568
715.892.0530
715.358.9806
info@ncswi.com
www.ncswi.com

bsmith451’s picture

try with the type of ad you are using, ie: image-advertisment img for image ads, html-advertisement img for an html ad, text-advertisement for text, etc