Custom CSS Selectors

Post here questions and problems related to oXygen frameworks/document types.
Posts: 1

Custom CSS Selectors

Mon Aug 07, 2017 2:30 pm

Hi, I am adding custom css using Oxygen XML Author 18.1,
the requirement is to add style to the table outline, below is the code, when the page is rendered in the browser [data-attr-] has been added to every selector including for table [data-name^='table!'], how can I avoid [data-attr] and [data-name]?

[outputclass = 'nobordersinglecell'] [class="- topic/tgroup "] table {
outline: none !important;
Posts: 198

Re: Custom CSS Selectors

Tue Aug 08, 2017 5:15 pm


In Web Author, the XML documents rendering is controlled by a CSS file that applies to the XML elements in your documents. In the browser, the XML is converted to HTML elements and the CSS is converted to another CSS that applies to the generated divs.

It seems that you want to supply a CSS that applies directly to the generated HTML elements. To do this, you can use the JS code [1] loaded from your framework directory to inject the required CSS styles in the HTML page.


[1] ... cript_code

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest