View Full Version : How to center ads?
I.G.O.T.A.
07-13-2011, 10:45 PM
I would like to center my certain ads in my forum. How do I go about doing that? Whats the code for centering it and where do I go to put that in the templates. I know it's image=center, but what code do I use for the templates? I hope this makes sense, lol.
HMBeaty
07-13-2011, 10:46 PM
<div align="center">YOUR AD CODE HERE</div>
I.G.O.T.A.
07-13-2011, 10:50 PM
I got that. Don't you have to go into the templates somewhere to make it work? Like I did that for Global header 1 or 2, but what's the forum one? Thank you.
HMBeaty
07-13-2011, 11:30 PM
but what's the forum one? Thank you.
Which one? There are several
LifesGreatestGift
07-14-2011, 01:07 AM
<div align="center">AD CODE</div>
is actually deprecated.
The new way to align elements is through CSS.
depending on the nesting of your DOM elements (DIV etc)
you will use the following CSS attributes with your elements.
text-align: center;
and / or
margin: 0 auto;
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.