There is no need to do any styling, coloring through .css() If there is any code which is done through .css() then something is wrong. JS side can change the class of the elements if required but I would not change positioning, colors and other stylistic things through JavaScript. Especially not through configuration.