Log in

View Full Version : Help with a tiny bit of code please?


bashy
03-20-2006, 07:57 PM
Hi peeps

With this bit of code below the 2 images appear on seperate lines
I would like them to appear on the same line but with a couple of spaces
seperating them, I have tried a few ways but as i aint a coder i am struggling

Please advise?

<if condition="$post['field25']"><div class="info"><a target="_blank" href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=$post[field25]">
<img border="0" src="http://www.bashys-place.com/forums/images/misc/mybay.gif" alt="View eBay Feedback"></a></div>
</if>

<if condition="$post['field26']"><div class="info"><a target="_blank" href="http://spaces.msn.com/$post[field26]">
<img border="0" src="http://www.bashys-place.com/images/msn.gif" alt="View myspace profile"></a></div>
</if>

Xenon
03-20-2006, 08:21 PM
try that one:

<if condition="$post['field25']"><span class="info"><a target="_blank" href="http://feedback.ebay.co.uk/ws/eBayISAPI.dll?ViewFeedback&userid=$post[field25]">
<img border="0" src="http://www.bashys-place.com/forums/images/misc/mybay.gif" alt="View eBay Feedback"></a></span>
</if>
&nbsp;&nbsp;&nbsp;
<if condition="$post['field26']"><span class="info"><a target="_blank" href="http://spaces.msn.com/$post[field26]">
<img border="0" src="http://www.bashys-place.com/images/msn.gif" alt="View myspace profile"></a></span>
</if>

bashy
03-20-2006, 08:33 PM
Absolutely perfect m8, Thank you, At least i can learn a little from seeing what you have done... :)

Thanks again, that ws spot on :)

Xenon
03-20-2006, 08:46 PM
you're welcome :)

Princeton
03-21-2006, 11:59 AM
you many want to add the spaces (&nbsp;&nbsp;&nbsp;) within the first conditional
eg. if field25 is not available spaces are not needed

bashy
03-21-2006, 03:05 PM
You had to do it didnt you...
You went straight over my head with that 1 lol :o