General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XMetal (12) and html table’s border formatting
-
bk November 20, 2017 at 5:48 pm
XMetal (12) and html table’s border formatting
November 20, 2017 at 5:48 pmParticipants 2Replies 3Last Activity 5 years, 2 months agoHi,
I'm using XMetal 12 with HTML tables and i would like to know how to get rid of the defaut display of table border (double border) in the editing view.
I try the following in the CSS (setting table border attribute to 0 or 1) but no change at all, the default “double” border is displayed :
TABLE, TH, TD {
border: 1px black solid;
border-collapse: collapse;
}Any idea ?
Bk
Derek Read November 20, 2017 at 8:28 pm
Reply to: XMetal (12) and html table’s border formatting
November 20, 2017 at 8:28 pmIn XMetaL (all products: XMetaL Author Enterprise, XMetaL Author Essential, XMAX) borders on tables (CALS and HTML) cannot be styled using CSS.
If you turn off the display of borders for a table (which can be done by setting the @border for the table value to an empty string or “0”) the software still renders dotted lines because without any lines visible it can be very difficult to edit a table.
There are no plans to implement fancier CSS styling for tables. That would likely slow down editing speed. Unlike a browser which only needs to render a table once, an editor like XMetaL Author re-flows the entire table with each edit made to table content and the more things it needs to take into consideration when doing that rendering the longer it will take to complete.
bk November 20, 2017 at 10:41 pm
Reply to: XMetal (12) and html table’s border formatting
November 20, 2017 at 10:41 pmThank you Derek for your precise and complete answer.
Derek Read December 5, 2017 at 8:34 pm
Reply to: XMetal (12) and html table’s border formatting
December 5, 2017 at 8:34 pmIf you really want to hide borders on a table, and the table is HTML, and you have set the value for @border to 0 (so that the borders are currently being displayed as a dotted line), in newer versions of the software you can select View > Hide Table Grid. The option Show Table Grid will render them again. View settings don't alter markup in any way.
This feature was designed like a sort of preview to answer the question “I wonder what my borderless table might look like after my document has been transformed to a format where tables aren't visible”. Of course some assumptions need to be made here but it can give you some rough idea. I wouldn't recommend trying to author this way though.
-
AuthorPosts
- You must be logged in to reply to this topic.