I’m trying to make a small change on a CSS for Spiceworks.
This is the line that I want to change:
<td class="body-id cell-id" style="width: 12%; "></td>
Now this code:
SPICEWORKS.utils.addStyle('body{background-color:blue}');
changes the bg color to whatever I want. I think I can also use the SPICEWORKS.utils.addStyle to change a width of a table. What I don’t know is how can I say to the program that I want to change that specific <td>’s width?
P.S. I’m just a trainee so I’m not a pro in programming.
According to Spicework’s documentation,
addStyleadds a CSS block to the<head>of the HTML page.Because your
<td>has its width defined in itsstyleattribute, that width will actually override whatever you add viaaddStyle, unless (I think) you add!importantto the style you add.Could you try this?