Re: centering a graphic or table in FO
At 2006-09-07 08:45 -0700, Danny Vint wrote:I've been trying various methods and looking at the spec but I have not found a way to center a table or graphic on a page.
A table is centred by using text-align="center" on the <table-and-caption> parent of <table>.
Also it was strange that my tables were sized correctly based upon the <col> information, but the width=100% didn't cause the table to override those settings. Logically I guess it made the bounding area to be 100% even though the table didn't use it.
A graphic is centred by using text-align="centre" on the <block> parent of the graphic.
I hope this helps.
Specializing in Panoramic Images of California and the West http://www.dvint.com
When H.H. Bennett was asked why he preferred to be out shooting landscapes rather than spending time in his portrait studio:
"It is easier to pose nature and less trouble to please."
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format