vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   below navbar.. (https://vborg.vbsupport.ru/showthread.php?t=271150)

Digital Jedi 10-02-2011 12:12 AM

I recommend using the <div> over the <p>, since that's meant for text only. Also if you use the style element, you'll be able to do more with it.

We would probably need to see your ad code to know why there's no spacing between them.

SPEEDKILLZ 10-02-2011 12:44 AM

ok so do you need me to post the entire code? also when i use the div code for some reason it made all text centered on my forum

Digital Jedi 10-02-2011 12:59 AM

As long as you post them in the [CODE][/CODE] tags, that will be fine.

--------------- Added [DATE]1317521611[/DATE] at [TIME]1317521611[/TIME] ---------------
Quote:

Originally Posted by SPEEDKILLZ (Post 2252062)
Thanks that worked perfect except it also made the text in my shoutbox and the whats going on also centered?? any way to make just the ads centered?


It would only have done that, if there's an open tag somewhere in your forum. So, you've probably got another problem you might want to address.

SPEEDKILLZ 10-02-2011 04:15 AM

Here is the code now

Code:

<p align="center"> <script type="text/javascript"><!--
google_ad_client = "pub-9181553695854459";
/* 336x280, created 9/29/11 */
google_ad_slot = "3468033999";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<script type="text/javascript"><!--
google_ad_client = "pub-9181553695854459";
/* 336x280, created 9/29/11 */
google_ad_slot = "6450148943";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

what you mean open tag? how i find that? thanks

markbolyard 10-02-2011 04:24 AM

Quote:

Originally Posted by SPEEDKILLZ (Post 2252215)
Here is the code now

Code:

<p align="center"> <script type="text/javascript"><!--
google_ad_client = "pub-9181553695854459";
/* 336x280, created 9/29/11 */
google_ad_slot = "3468033999";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<script type="text/javascript"><!--
google_ad_client = "pub-9181553695854459";
/* 336x280, created 9/29/11 */
google_ad_slot = "6450148943";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

what you mean open tag? how i find that? thanks

If you want to ad a space between your ads, just add

Code:

&nbsp;
between your two ads.

When he says closed tag, he means you have a <div> without a closing tag </div>, or a <p> tag without the closing </p>

--------------- Added [DATE]1317533215[/DATE] at [TIME]1317533215[/TIME] ---------------

BTW, based on the code you posted, that code looks fine, but change the

Code:

<p align="center">
to

Code:

<div style="text-align:center;">
and the closing </p> tag to </div>

SPEEDKILLZ 10-02-2011 05:06 AM

thank you i see i forgot the / in the code jedi gave me.. Thank you all so much it's fixed? but a question just for learning experience. What is the diff if the two codes are they for different things?

Digital Jedi 10-02-2011 07:25 AM

You mean <p> and <div>? The <p> defines a paragraph, which is why it's just for text. While <div> defines a section or block element on your page. <div> is what you would use when placing blocks of code on your pages.


All times are GMT. The time now is 02:58 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.01080 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete