Bob is right in saying that using CSS makes these things much easier and 
cleaner. Michael's then look something like this:

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

<html xmlns:py="http://purl.org/kid/ns#";>
<head>
<style>
#cal td.first {
     width: 2em;
     background-color: #eeeeee;
}
#cal td.next {
     width: 3em;
     background-color: #29558d;
     text-align: center;
     vertical-align: middle;
}
#cal td.next a {
     color: white;
}
</style>
</head>
<body>
<table id="cal"><tr>
<td py:for="day in days" class="${day==0 and 'first' or 'next'}">
<a class="links" href="day.py?day=$day" py:if="day">$day</a></td>
</tr></table>
</body>
</html>

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

The big advantage is that you can play around with different styles 
without breaking your html or your Python code.

BTW, instead of the nested loop, you can pass days as:
days = itertools.chain(*monthcal)

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to