PDA

View Full Version : How to center advertising?


floydian1
03-26-2011, 02:39 PM
How do I center the ads in vBulletin 4.0 under the navbar?
They are all left?

Lynne
03-26-2011, 03:16 PM
Just write some CSS to do it. If you give us a link, then we can try to write some for you. Or just use firebug to do it yourself.

bruneiguru
03-27-2011, 01:56 AM
try this: <center>your html code</center>

works for me :)

Lynne
03-27-2011, 03:40 AM
The center tag is deprecated. You should be using CSS.

Draffi
09-08-2012, 08:57 PM
HI!

Sorry for to BUMP this old topic, but i was trying this, directly in the Advertising-Manager:

<style>
IMG.displayed {
display: block;
margin-left: auto;
margin-right: auto }
<IMG class="displayed" src="http://localhost/vbu/Advertising_2.gif" width=728 height=90><br></style>

(I want to show an Picture for Testing purpose in XAMPP first)

But it is not working - anybody an idea?

Lynne
09-08-2012, 11:43 PM
You need to put it in a <div> that fills the space 100% (or a div that is centered) and then apply centering to that div.

Why did you reply here and start your own thread? It makes it very hard to help when users do that.

Draffi
09-09-2012, 12:11 AM
You need to put it in a <div> that fills the space 100% (or a div that is centered) and then apply centering to that div.

Thank you for the answer. you mean something like this?

<div align="center"><CODE></div>

It is not working...

Why did you reply here and start your own thread? It makes it very hard to help when users do that.

For the search-machines all around the world (Big "G." is watching here...)

@All Followers: Please look at this thread here:
https://vborg.vbsupport.ru/showthread.php?t=287626

snakes1100
09-09-2012, 01:09 AM
If <center> or <div> isnt working to center the ad, then your custom skin/style is the issue.

btedition
01-28-2014, 07:08 AM
I know this thread is old..

<center>
html code
</center>

works fine for 4.2.0