Add other class attributes to HTMLgen tags?

Duncan Booth duncan.booth at invalid.invalid
Wed Sep 22 09:27:31 CEST 2004


adeger wrote:

> For use of CSS how do I do something 
> like insert a 'class' attribute into an 
> HTML tag like:
> 
><TABLE class='standard'></TABLE>
> 
> I've really made a good faith effort to find this
> in the documentation and elsewhere on the web with
> no luck.
> 

The HTMLgen library lowercases all attribute names, so you should be able 
to use an attribute name such as 'Class' or 'CLASS' without problems:

    table = TableLite(Class='standard')



More information about the Python-list mailing list