vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Right align of Google Ads in Header2? (https://vborg.vbsupport.ru/showthread.php?t=274915)

BonsaiNut 12-01-2011 06:25 PM

Right align of Google Ads in Header2?
 
I am using the default vBulletin advertising options in the CP to place a Google Ad in Header2 for people coming to the forum who are not registered.

My problem is, the header ad is showing left aligned, no matter what I have tried to enter in the code. I have tried span and float and it does not want to budge from left margin. Any ideas?

You can see the site here.

Lynne 12-01-2011 08:29 PM

Try this in your additional.css template:
HTML Code:

#ad_global_header1 {
    float: right;    margin: -50px 30px 0;}

Modify to suite your needs.

BonsaiNut 12-01-2011 11:54 PM

Lynne, as always you're a goddess :) It worked... MOSTLY.

There is something weird going on. The banner is nicely right aligned as long as my forum window is no wider than about 1400 pixels. If I widen the window any wider, suddenly the ad banner pops up so that it is almost hidden off the top of the screen.

My doc_width stylevar is set to "auto" so when I widen or narrow the window that the site is being displayed in, the entire site widens or narrows automatically.

How it looks up to approx 1400 pixels wide:

https://vborg.vbsupport.ru/external/2011/12/78.jpg

How it looks when I widen the window a little bit more:

https://vborg.vbsupport.ru/external/2011/12/79.jpg

The screenshots are from my front page (vBadvanced) but the header behaves exactly the same on ALL vBulletin pages - forumlist, threads, etc. The header does not gradually float up there, it "snaps" up once I hit a certain width (that I can't quite figure out).

[EDIT] I spent a little time measuring the window and it appears that the header pops up when the document width (including margins) is somewhere between 1510 and 1520.[/EDIT]

Lynne 12-02-2011 03:21 AM

You need to make the style chooseable in order for me to see what is going on with the CSS.


All times are GMT. The time now is 08:47 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.00927 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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