Sagewire Logo

Align of images and text in "[code][/code]..."

3 Message(s) by 2 Author(s) originally posted in java gui


From: tony Date:   Friday, October 05, 2007
Good day.
I try to align image and text by center (on horizontal line) in JTable
cell.
I use "<html><img src="..." />Some text</html>" as a getValue. A text
is now aligned with bottom edge of image (as I can see it).
Does anybody know how to do center them?

Tony.


From: Roedy Green Date:   Saturday, October 06, 2007
On Fri, 05 Oct 2007 17:56:24 -0700, tony <tony.aldrich@xxxxxxxxxxx>
wrote in message, quoted or indirectly quoted someone who said :

I use "<html><img src="..." />Some text</html>" as a getValue. A text
is now aligned with bottom edge of image (as I can see it).
Does anybody know how to do center them?



I do not know how broken the JAVA rendering engine is, but you can use
<div align="center">
or <div style="text-align:center;">
in ordinary HTML

--
Roedy Green Canadian Mind Products
The JAVA Glossary
http://mindprod.com


From: tony Date:   Sunday, October 07, 2007
Thanks, I found out that <div align="middle"> does something like
centering I want to have, not so good by the way, text is a little
higher than image.

I do not know how broken the JAVA rendering engine is, but you can use
<div align="center">
or <div style="text-align:center;">
in ordinary HTML






Next Message: Unpredictable Swing behaviour



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional