PDA

View Full Version : code to center ads?


SPEEDKILLZ
10-30-2013, 11:44 AM
Can someone tell me what i would need to ad to my ad code to center my ads on my forum?

ozzy47
10-30-2013, 11:55 AM
You should be able to do that with the stylevar, ad_margin found in the group Ads.

For UNITS choose PX and then just put numbers in save and then look at your forum and you will see what adjusts what and then you just tweak it until it looks the way you want.

SPEEDKILLZ
10-30-2013, 11:59 AM
is this in edit templates?

ozzy47
10-30-2013, 12:18 PM
No, ACP --> Styles & Templates --> Style Manager --> Style Variable Editor for the style you are working with.

SPEEDKILLZ
10-30-2013, 12:29 PM
No, ACP --> Styles & Templates --> Style Manager --> Style Variable Editor for the style you are working with.


Oh thank you ozzy but this is moving all my ads. I just need to center the top ad.

ozzy47
10-30-2013, 12:33 PM
Ok in the template, ad_global_below_navbar wrap the code in that template with this.

<div align="center">
Existing Code In Template
</div>

SPEEDKILLZ
10-30-2013, 12:42 PM
Ok in the template, ad_global_below_navbar wrap the code in that template with this.

<div align="center">
Existing Code In Template
</div>

Once again you are more than a help ozzy (fountain of knowledge) :D

Thank you sir

ozzy47
10-30-2013, 03:58 PM
Not a problem, glad to help. :)