471,873 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

This should work just fine... its driving me mad

Expand|Select|Wrap|Line Numbers
  1.  
  2. <div class="thumbnails">       
  3.   <a tal:repeat="tn python:here.fetch_photos()" class="tnlink" tal:attributes="href tn/image;">
  4.     <div class="tnimage" tal:attributes="style python:'background: url(%s) no-repeat center center' % tn.thumbnail();"></div>
  5.   </a>
  6. </div>
  7.  
So i have this little bit of code that should render like so:
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>

But for some strange reason it often (like 7 out of 10 times) renders wrong and renders:
<a></a>
<div><a></a></div>
<a></a>
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>
<a><div></div></a>


I really hope someone has an idea what could be responsible for this happening...
Oct 10 '08 #1
0 927

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by pete | last post: by
11 posts views Thread by John Price | last post: by
2 posts views Thread by shapper | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.