Pages: 1
Print
Author Topic: Table width with CALS_table_auto_layout = true  (Read 1719 times)
gcrews
Member

Posts: 265


« on: March 31, 2014, 11:30:03 AM »

I enabled the CALS_table_auto_layout to try and make them act like they do in HTML. Some writers were having issues with some text being cut off. It also looked weird with tables being 100% and really large with little text. With CALS_table_auto_layout turned on though, seems to make table editing even more ugly.

HTML tables seem to resize based on the content with no line wrapping unless 100% width is reached. With CALS_table_auto_layout turned on in Xmetal, it seems to be choosing an arbitrary max size of like 350 pixels for the max width unless you force it out with a long line of non-breaking text. Is there a way in the CSS to specify that the table should go to 100% width or someething? Or is this something that can't be done, just like the horizontal scroll bar not having a clue how wide the page actually is? I have tried the following with no results.

Code:
[class~="topic/table"] {
display: block;
width: 100%;
max-width: 900px;
}
[class~="topic/entry"] {
display: block;
width: 100%;
max-width: 900px;
}


* editing.png (33.26 KB, 1456x566 - viewed 389 times.)

* output.png (9.2 KB, 1423x218 - viewed 375 times.)
« Last Edit: March 31, 2014, 11:32:29 AM by gcrews » Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2618



WWW
« Reply #1 on: March 31, 2014, 03:26:52 PM »

You can't fix this with CSS. You will also probably see different behaviour for these three CALS tables "setups":
1. All columns are proportional width.
2. All columns are fixed width.
3. Some columns fixed and some columns proportional.
« Last Edit: March 31, 2014, 03:29:50 PM by Derek Read » Logged
Pages: 1
Print
Jump to:  

email us