vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to center advertising? (https://vborg.vbsupport.ru/showthread.php?t=260968)

floydian1 03-26-2011 02:39 PM

How to center advertising?
 
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

Quote:

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...

Quote:

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


All times are GMT. The time now is 01:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete