The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Center and size ad.
I am using a 250x250 ad in my sideblock. first is there a way to make it bigger like 300x300 because i dont see that option in adsence. Second i cannot get it to center in the block. I wrapped it with
Code:
<div align="center"> ad here </div> |
#2
|
|||
|
|||
Remove the <div>
And just try <center></center> As to re-sizing it, check out the source code, the size will be specified in it somewhere, just alter it to your needs, you may need to scale it, so if you reduce the width by 20px to the same to the height to stop it looking stretched |
Благодарность от: | ||
SPEEDKILLZ |
#3
|
|||
|
|||
Thanks but that did not work either.
|
#4
|
|||
|
|||
I have already looked at this a little bit, and there are a few strange things. I am guessing you are installing this into a forum block. If so send the code you have installed in the forum block, so I can seperate it from the ad code.
Looking at the HTML/CSS on your page you seem to be setting the height and width of the iframe and externally on the div. |
Благодарность от: | ||
SPEEDKILLZ |
#5
|
|||
|
|||
Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Sponsor --> <ins class="adsbygoogle" style="display:inline-block;width:240px;height:240px" data-ad-client="ca-pub-9181553695854459" data-ad-slot="2036427109"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> |
#6
|
|||
|
|||
This took me a bit to figure out. Your template CSS is structured incorrectly and this is really only a patch, that may or may-not work down the line.
Code:
/* Add this to the end of your "additional.css" template */ #sidebar_container .blockrow { padding: 10px 3px; } |
#7
|
|||
|
|||
Quote:
Thank you , how did my scc get structured incorrectly? Able to tell that from the code i got from adsence? |
#8
|
|||
|
|||
If that is a purchased template. Then the original CSS box model structure for the sidebar, is incorrect in that section. Hopefully, that patch will work without side-effects, until they fix their CSS code.
Google CSS box model structure. |
#9
|
|||
|
|||
Thanks it did center the ad in the forum block. So is it as easy as to change your ad size in the code to make it a different size?
|
#10
|
|||
|
|||
I used your block code to eliminate any unknown from what my browser saw. Then I analyzed what was going wrong with the box model. Modern browsers have all sorts of tools to help in this area, that is why we always ask for a link where people have CSS/HTML problems.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|