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 separate header 1 and 2 ads (https://vborg.vbsupport.ru/showthread.php?t=319863)

ketanco 08-14-2015 04:24 AM

how to separate header 1 and 2 ads
 
I would like to separate the google ad and banner ad at header 1 and 2. how can i do that?
i tried putting them in div and padding or margin but it did not work

Lynne 08-14-2015 07:40 PM

Can you please post a link so we can see the problem.

TheLastSuperman 08-14-2015 09:08 PM

^ Please post a link as Lynne asked. On a side note though, some forum designs meaning... if you have to 728x90 banners and you want one on the left, and one on the right w/ a little spacing between them without realizing that their forum is a fixed width at 980px - this won't ever happen! So make sure that you're either using a fluid style or that your set site width is large enough to actually hold both ads if you have them side-by-side.

980px-728px=252px minus any padding or margin settings to play with.

^ Very rough example but you should get the idea, if simply stacking ads top to bottom it shouldn't matter unless you just don't take it into consideration.

ketanco 08-15-2015 05:23 AM

ok sure,
my site is

constructforum.com

look at the very top at home page

the google ad in header 1, and my own banner ad in header 2 are touching each other. how can i separate?

also i want to bring them a little down if possible they are touching to top of screen , which i dont want....

thanks a lot

cellarius 08-15-2015 05:38 AM

Add this to your additional.css:
HTML Code:

#ad_global_header1 {
  margin-right: 5px;
}

Of course, you can set the margin as you like.

Lynne 08-15-2015 07:32 PM

to get a top margin, just add to what Cellarius wrote:
HTML Code:

#ad_global_header1 {
  margin-right: 5px;
  margin-top: 10px;
}
#ad_global_header2 {
  margin-top: 10px;
}

Of course, change those margins to whatever you want.

cellarius 08-16-2015 03:45 AM

Ah. I missed the part about the top margin...

RichieBoy67 08-16-2015 07:30 AM

A simple way to separate them is just too add a couple   between them.


All times are GMT. The time now is 02:28 PM.

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.00977 seconds
  • Memory Usage 1,718KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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