Please use CSS classes for all elements

A challenge i face on a regular basis is template designers who do thin like this in the CSS files;

table {
    border: 1px solid #ccc;
    width: 100%
}
tr {
    border: 0;
}
td, th {
    font: 11px verdana, arial, helvetica, sans-serif;
    line-height: 12px;
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
}

This example comes from the Grails scaffolding and kills dhtmlxTree. My only option was to go through the dhtmlxTree.js code and add a style class everywhere an element was created. as week as a couple of mods to dhtmlxTree.css ( two files as opposed to hundreds)

I appreciate that this is not really your problem, and should really be fixed in the template, but if you were to use class names for all elements, it would make the integration of your product far simpler.

other that that; great product :slight_smile:

kind regards

Julian

Yep, we are moving in that way.

By the way, you can resolve problem, without code modification, by using

div.containerTableStyle table { border: 0px solid red; } div.containerTableStyle table td { padding: 0px 0px; }

Stanislav

One day i really need to read a CSS book, i have to admit i never knew you could do that.

Thanks for the input, i learned something today. I will revert and test it.

best wishes

Julian