![]() |
Space between posts in showthread
1 Attachment(s)
Hey all,
Done a search on this, but can't find anything that really matches what I need. I've added some code into my postbit template, which adds Adsense - but I can't get the spacing right, whether I use a <br /> or a I just can't get it to the same size as it is between posts (see attachment). The new code is within a <table> then <td> and <tr> - what can I used to add the same gap as by default - I've even used the same <table ... > code from the top of the postbit template in case that held something I was missing .... this is driving me nuts! TIA Jason |
It should be <table><tr><td>Content</td></tr></table>. The screenshot is rather dark. Can you please post your code that you'll use for Adsense?
|
1 Attachment(s)
Here's what it looks like with a lighter style ... basically there is no gap between the end of the post and the Adsense block (it's all inside a table) - it's the gap between the bottom of the Adsense block and the next post I want to recreate ... just so it's uniform.
Thanks, Jason |
Vbulletin by default puts a space between each "post".
Your adsense just needs a space above it to make it uniform. |
Thanks - but what sort of space do I need, a <br /> is too large and so is a - I have no idea what else I could use to make the space similar, failing that I will use a br tag.
|
Use something like:
In template: Code:
<div style="height:3px"></div> Change the "3px" to whatever value you want. |
Thanks - I had totally forgotten about the div tag :p
Jason --------------- Added [DATE]1193930108[/DATE] at [TIME]1193930108[/TIME] --------------- After a quick test ... the div tag just puts it over the top of the next post - and doesn't create a gap between the post above and the Adsense table... |
Please post your postbit code (or code that surrounds the Adsense code). :)
|
Here's all the code from the postbit template (included adsense code)
PHP Code:
|
Try adding:
Code:
<div style="height:10px"></div> After: Code:
<if condition="(($post[postcount]==1) or ($post[islastshown] AND !$GLOBALS['vbulletin']->GPC['ajax']))"> I tested it using your Adsense code and it created a space between the first post and adsense Table. See if that is what you're looking for. :) |
All times are GMT. The time now is 03:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|