Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Dec 2011, 18:25
BonsaiNut BonsaiNut is offline
 
Join Date: Oct 2006
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.
Reply With Quote
  #2  
Old 01 Dec 2011, 20:29
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Try this in your additional.css template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Modify to suite your needs.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 01 Dec 2011, 23:54
BonsaiNut BonsaiNut is offline
 
Join Date: Oct 2006
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:



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



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]

Last edited by BonsaiNut; 02 Dec 2011 at 00:05.
Reply With Quote
  #4  
Old 02 Dec 2011, 03:21
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You need to make the style chooseable in order for me to see what is going on with the CSS.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:01.

Layout Options | Width: Wide Color: