Method addCss() not working correct usage

Hello!! I'm trying to use addCss(). The case in question is for example:

webix.html.addCss("dom_element", "class_name");

The problem is that if i place the class declaration into the section of the main html page (i'm developing an one page webapp) the code specified above work but instead if i place the css class definition into an external css file (in this case placed into a subfolder but i tried with a file placed at top level) obiviously including it into the main html page, like this:

"< link rel="stylesheet" href="custom_css/customStyles.css" type="text/css" charset="utf-8" >"

The addCss() start not working. It seems that the definition become invisible.

Any idea?


  • Hello,

    The addCSS method just adds /appends a provided string to the node class name. And it does not where the corresponding CSS rule is declared, either it is document head or the included style sheet.

    <span class="added">
    <span class="own added">

    Please inspect the HTML with browser dev tools to ensure that the needed node has the defined CSS class and the stylesheet has been loaded.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion