<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 10:42 AM, Andrew Milton <span dir="ltr"><<a href="mailto:akm@theinternet.com.au">akm@theinternet.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
+-------[ Mark Phillips ]----------------------<br>
<div><div></div><div class="h5">|<br>
|<br>
| On Tue, Oct 5, 2010 at 10:28 AM, Andrew Milton <<a href="mailto:akm@theinternet.com.au">akm@theinternet.com.au</a>> wrote:<br>
|<br>
| +-------[ Mark Phillips ]----------------------<br>
| | I have a table and I am putting data into the cells using tal. I want to bold the data under a certain condition. I tried<br>
| this,<br>
| | but it didn't work:<br>
| |<br>
| | <td tal:content="string:${player/name}"><b tal:condition="python:str(player['name']) == 'Team'">name</b></td><br>
|<br>
| Try using css<br>
|<br>
| <td><div tal:replace="string:${player/name}" tal:attributes="class python:test(player['name'] == 'Team', 'someboldcss', '')"<br>
| /></td><br>
|<br>
|<br>
| Is CSS preferred over using tal:omit for some reason? When would I use tal:omit to add formatting to a table cell and when should<br>
| I use CSS instead?<br>
<br>
</div></div>I think you want to use CSS. Later if you want to change from bold to<br>
underlined or italics or rainbow, you can just change a CSS class,<br>
instead of rebuilding your mark up.<br>
<font color="#888888"><br></font></blockquote><div>Thanks! good advice! </div></div><br>