On 26. jan. 2006, at 01.36, northam wrote:


What I have in template.kid (notice one long string without spaces
between html tags):

<div style="padding-left:2px;padding-top:7px;"><a href=""
target="com" title="my Weblook"><img
src="" width="92"
height="18" alt="my Weblook" style="margin-left:2px"/></a><a
href="" target="com" title="Setup"><img
src="" width="48" height="18"
alt="Setup"  style="margin-left:2px"/></a></div>

What TurboGears gives me in browser:

<div style="padding-left:2px;padding-top:7px;">
<a href="" target="com" title="my Weblook">
<img src="" alt="my
Weblook" height="18" style="margin-left:2px" width="92" />
</a>
<a href="" target="com" title="Setup">
<img src="" alt="Setup" height="18"
style="margin-left:2px" width="48" />
</a>
</div>


which screws up the design and look of the page.
Is there any parameter which allow to disable this reformatting?
Thanks!


I'm no designer, far from it actually, but from experience the above HTML won't work consistently across browsers even if you managed to persuade KID to leave your HTML alone.

This, however,  will work, most of the time:
<div>
<div style="float:right"><img...</div>
<div style="float:right"><a href...</div>
<div style="float:right"><img...</div>
<div style="float:right"><a href...</div>
.
.
</div>

regards
/rune

---------------------------------------------------------------------

Behind the firewall, nobody can hear you scream...


Reply via email to