Copy link to clipboard
Copied
I am using RH8 and have installed the patch up to 8.0.2.208. Most of the files for the project are htm files that are being imported. These files include tables formatted using <table style=”border-collapse: collapse” width=”100%” border=”2” bordercolor=”#dddddd”>. The files display fine with a single (collapsed) border before importing to RH. However, after bringing them into RH (or copying/pasting the code), the tables are automatically being reformatted with an additional ‘border-collapse’ clause. The statement is automatically changed to the following: <table style=”border-collapse: collapse; border-collapse: separate;” width=”100%” border=”2” bordercolor=”#dddddd”>. The result is a table with a double (separated) border. Can anyone explain why RH adds in the additional information that over-rides the original code and adds in the ‘border-collapse: separate’ code? Other than creating a style sheet with a class statement, is there anything in RH that can be set to avoid the automatic change to the code upon importing the htm files? Thanks, AdjunctInstr2000
Copy link to clipboard
Copied
I have seen this with other HTML editors in preview. If you generate the output, is the table correct then?
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Thank you for your reply. The problem appears in the generated output.
Our next test will involve putting everything in a style sheet (which we
got to work once), then stopped. I hope to complete my testing this
morning and will follow up with our findings.
Thanks again,
Wanda Mally
I have seen this with other HTML editors in preview. If you generate the
output, is the table correct then?
Â
----
See http://www.grainge.org for RoboHelp and Authoring tips
Â
http://www.grainge.org/twitter.jpg http://twitter.com/petergrainge
>
Copy link to clipboard
Copied
I'm wondering if this would be the simpler solution.
Create a table with the required borders using RoboHelp's table editor (good luck with that but it does create a CSS table style).
Once you have a CSS table style that works as you want, go to another table and put the cursor in it.
Click Tables > Table Styles and select the table. Make sure you tick Remove Inline Styling. Your table should then appear as per the CSS.
OR look at http://www.grainge.org/pages/authoring/tables/table_borders.htm
It applies to RoboHelp 7 but the details may prove useful.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hello Peter and thank you again for following up. I explored the options
to create a table stylesheet. I understand what you are suggesting, but
RH seems to be limited in what you can define when creating table styles.
Maybe there's something I'm overlooking, but I need to define the "look"
for the table's first row, the fixed width of the table's first column,
the color and size of the table grid and the color/size of the table
border. Does the style feature for tables allow you to accomplish all of
those features? I'll work with it some more but didn't see how to do
this.
Thank you,
Wanda
I'm wondering if this would be the simpler solution.
Â
Create a table with the required borders using RoboHelp's table editor
(good luck with that but it does create a CSS table style).
Â
Once you have a CSS table style that works as you want, go to another
table and put the cursor in it.
Â
Click Tables > Table Styles and select the table. Make sure you tick
Remove Inline Styling. Your table should then appear as per the CSS.
Â
OR look at http://www.grainge.org/pages/authoring/tables/table_borders.htm
Â
It applies to RoboHelp 7 but the details may prove useful.
Â
----
See http://www.grainge.org for RoboHelp and Authoring tips
Â
http://www.grainge.org/twitter.jpg http://twitter.com/petergrainge
>
Copy link to clipboard
Copied
You can define first row colouring, you can create repeating groups of rows with many combinations. What it can do is very powerful. The catch is getting it to do what you want. We now have to regularly visit a number of users who went mad in the process.
Unfortunately you cannot dictate column width, that has to be done manually in each table. I use MacroExpress to set the column widths. Took a bit of setting up but worth the effort.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hi,
With smart use of css selectors, you can set the width of the columns of your table. See also: http://www.w3.org/TR/CSS2/selector.html Note that this requires you to edit your css manually with an external css editor.
For instance:
table.mytableclass tr td:first-child {width: 200px;} Sets all the first td elements (first column) to a width of 200px.(Not supported by IE 6)
table.mytableclass td {width: 200px; } Sets all the cells to a width of 200px.
table.mytableclass td+td {width: 200px;} Sets the second and following cells in the table to a widht of 200px. (Not supported by IE 6)
Greet,
Willam