473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Add other class attributes to HTMLgen tags?

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.

Thanks in advance,
ard
Jul 18 '05 #1
2 1329
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.

Thanks in advance,
ard


I use the following work-around:

icons = TD(**{"class":"icons"})

kind regards, Gerrit
--
Gaudi systems architecting:
<http://www.extra.research.philips.com/natlab/sysarch/>

Jul 18 '05 #2
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')
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: chotiwallah | last post by:
i have a little database driven content managment system. people can load up html-docs. some of them use ms word as their html-editor, which resultes in loads of "class" and "style" attributes -...
1
by: dont bother | last post by:
Hi, I have downloaded the HTMLgen for generating web pages with python. However I untared and unzipped it. I tried to link it with my path like this: Heres my .bashrc file...
0
by: Armand Federico - INFO | last post by:
I received an error when i try htmlgen on winxp, apapche, mysql, mod_python THIS IS THE ERROR Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File...
4
by: Joshua J. Kugler | last post by:
I realize that in today's MVC-everything world, the mere mention of generating HTML in the script is near heresy, but for now, it's what I ened to do. :) That said, can someone recommend a good...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.