Log in

View Full Version : Extra space in postbit


mathforum
02-23-2014, 07:38 PM
Hello all,

I have finally figured out an issue that has been bugging me for months! I couldn't get images from a custom add-on to show in PMs but somehow today it came to me. :)

The only remaining problem is styling. The way this is working is I've edited the template code for the add-on to the following (very short):

<!-- show ranks -->
<if condition="$post[showuserranks]">

<dl class="userinfo_extra">
<div style="padding-bottom: 5px;">
<dt>Thanks</dt> <dd>{vb:raw post.vbseo_likes_out} times</dd>

<dt>Awards</dt> <dd>$post[userranks]</dd>
</dl>
</if>
<!-- /show ranks -->


Here is what a PM postbit looks like now:
https://vborg.vbsupport.ru/external/2014/02/12.png

There is some extra space between "Thanked" and "Awards", most likely due to the fact that I have two separate <dl> blocks - the one in the postbit legacy template and the one above. It is rendering as two separate blocks.

Any ideas how I can fix this?

Lynne
02-23-2014, 08:02 PM
It's a CSS issue. When dealing with CSS issues, it is impossible to tell what is going on from just an image. It is easier to use a tool like firebug to view the CSS and see what is happening. So, can you please supply a link and a test username/password, if needed, to see the problem.

mathforum
02-23-2014, 08:47 PM
Sent you a PM with URL and account information to log in. I am starting to think that I'm not going about this correctly but I'll wait. The box that I'm concerned with in the postbit contains images from v3 arcade and YARS, which starts to get into registering variables and other template stuff that I'm not able to work with yet. I'll write the developer of the mod as well.

--------------- Added 1393205211 at 1393205211 ---------------

Lynne has confirmed that it's a CSS issue related to styling the last block in the add-on template. It opens and closes another <dl> tag and my CSS is set to display as blocks for this element. Is there a way to reference CSS but override certain parameters inline? Maybe if I can use span somehow then it can sneak into the first block and not make a new one.

Seven Skins
02-24-2014, 07:35 AM
If I get the link of the site/thread where you are having this issue then I may be able to help.

mathforum
02-24-2014, 08:52 AM
PM sent. :) If any progress is made or someone gives me helpful advice, I will definitely post about it in this thread for others to use in the future.