473,396 Members | 1,849 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,396 software developers and data experts.

HTMLGen- Table Align property

Does anyone know if the table align property is available in
HTMLgen.Table?
The docs don't show it, but I find it hard to believe that it is not
available.

I want to center the table.
Only the cell align propterty is available

Dec 28 '05 #1
5 1783
Cappy2112 wrote:
Does anyone know if the table align property is available in
HTMLgen.Table?
The docs don't show it, but I find it hard to believe that it is not
available.

I want to center the table.
Only the cell align propterty is available


I've never used HTMLgen, but you might try wrapping your table in a DIV
with a "style" attribute (or using the TableLite class, which also
accepts a "style" attribute), and setting the "text-align" property:

http://www.w3schools.com/css/pr_text_text-align.asp

Hope this helps,
Dave
Dec 28 '05 #2
Cappy2112 wrote:
Does anyone know if the table align property is available in
HTMLgen.Table?
The docs don't show it, but I find it hard to believe that it is not
available.

I want to center the table.
Only the cell align propterty is available

print HTMLgen.TableLite(align="center") <TABLE align="center"></TABLE>
print HTMLgen.Div(align="center")

<DIV align="center"></DIV>
Dec 28 '05 #3
Table and TableLite are different classes. Tablelite requires a little
more work, and I will ave to rewrite some code to use it.

I am using Table a tthe moment

ith a "style" attribute (or using the TableLite class, which also
accepts a "style" attribute), and setting the "text-align" property:
http://www.w3schools.com/css/pr_text_text-align.asp


I'm not familiar with tall the details of CSS at the moment, nad
learning it would only slow down my progress.

Maybe I'll just add the align property to the class
Thanks for your help

Dec 28 '05 #4
Cappy2112 wrote:
Table and TableLite are different classes. Tablelite requires a little
more work, and I will ave to rewrite some code to use it.

I am using Table a tthe moment


Well, as far as I know, wrapping a DIV align="center" around a TABLE
should produce the same effect as giving the TABLE an align="center".

Dave
Dec 28 '05 #5
"Cappy2112" <ca*******@gmail.com> wrote:

Does anyone know if the table align property is available in
HTMLgen.Table?
The docs don't show it, but I find it hard to believe that it is not
available.

I want to center the table.
Only the cell align propterty is available


You've got the source. Surely it would have been quicker and easier to
just Go Look It Up. That's the beauty of Python.

No, it's not there. It's easy enough to add it, or you can wrap the table
in <center> or <div align='center'>.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Dec 30 '05 #6

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

Similar topics

4
by: user | last post by:
Checking out HTMLgen, I find the manual to be quite terse, and difficult to crack. Are there any examples or tutorials available for this package? Thanks, Tobiah
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: Andre van der Vlies | last post by:
A new set....
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...
13
by: Michele Simionato | last post by:
What is the recommended way of generating HTML from Python? I know of HTMLGen and of few recipes in the Cookbook, but is there something which is more or less standard? Also, are there plans to...
0
by: C. Titus Brown | last post by:
Hi all, I spent a little bit of time today working on Robin Friedrich's HTMLgen, and made it work more like a modern Python package, with a Python package directory & distutils-based setup.py. ...
0
by: Sebastian Bassi | last post by:
Hello, I am using HTMLgen. It is very nice. But I can't make it to generate an arbitrary command. For example I want to output this: <embed src="canvas_norelief.svg" width="140" height="68"...
4
by: kgmuller | last post by:
Does anybody know whether htmlGen, the Python-class library for generating HTML, is still being maintained? Or from where it can be downloaded? The Starship site where it used to be hosted is dead....
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...
5
by: econtreras.bantech | last post by:
Good day Mr. Guido, excuse my poor english. I am looking for HTMLgen module but not to find this, the link referenced in www.python.org it does not exist. I have need to develop in cgi and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.