Fixed table columns for Webhelp output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 55
- Joined: Tue Mar 13, 2018 6:07 pm
Fixed table columns for Webhelp output
Post by steinbacherGE »
Is it possible to create a table with a fixed width in Webhelp Responsive?
I'm trying to create a one column table with a fixed width to display several hazard statements. When I publish to webhelp they are all scaled differenty based on the size of the browser and the lenght of each line of text.
Thanks,
Leroy Steinbacher
I'm trying to create a one column table with a fixed width to display several hazard statements. When I publish to webhelp they are all scaled differenty based on the size of the browser and the lenght of each line of text.
webhelp-table.png
When I publish to HTML5 I get the desired result. table-html5.PNG
Any suggestions? Is this something I can fix in the CSS file?Thanks,
Leroy Steinbacher
You do not have the required permissions to view the files attached to this post.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Fixed table columns for Webhelp output
Hi Leroy,
Indeed, the tables from the WebHelp Responsive output have variable width, in order to keep the responsiveness of the topics.
So, depending on the screen and viewport size, the columns may compress or extend.
That's achieved by a width:100%; property, which is set on all tables by the default CSS files from oXygen.
However, you could just override this behavior through a customization .css file of your own, where you could set your own properties to override the default ones, as you would like.
You can find more information on how to use a custom CSS to customize the WebHelp Responsive output in the "How to Use CSS Styling to Customize the Output" section from the User-Guide.
Regards,
Costin
Indeed, the tables from the WebHelp Responsive output have variable width, in order to keep the responsiveness of the topics.
So, depending on the screen and viewport size, the columns may compress or extend.
That's achieved by a width:100%; property, which is set on all tables by the default CSS files from oXygen.
However, you could just override this behavior through a customization .css file of your own, where you could set your own properties to override the default ones, as you would like.
You can find more information on how to use a custom CSS to customize the WebHelp Responsive output in the "How to Use CSS Styling to Customize the Output" section from the User-Guide.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 55
- Joined: Tue Mar 13, 2018 6:07 pm
Re: Fixed table columns for Webhelp output
Post by steinbacherGE »
If anyone is interested I explored a few different options.
https://stackoverflow.com/questions/358 ... tstrap-css
This overrides the bootstrap setting of 100% but then table width varies based on content.
This scales hazard statements to the width of the browser like all other tables.
This forces all hazard statements to be a specific width.
Code: Select all
.table { width: auto }
This overrides the bootstrap setting of 100% but then table width varies based on content.
Code: Select all
.hazardstatement { width: 100% }
Code: Select all
.hazardstatement { width: 600pt }
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service