Is it possible to add a whole new CSS class like this in Chrome dev tools?
.myclass {
background-color: yellow;
}
On Chrome's Developer Tools tab (CTRL + SHIFT + I), go to Resources (you may have to enable Resource tracking on that page), and click on the sub-tab Stylesheets. That will show all css files loaded by that page.
On the Elements
tab there's a styles
tab which contains a small + button on the right side.
When you click here, you can add a whole new CSS class.
Once you've defined the new class, see Add a class to an element to learn how to apply it to an element. You could also just double-click the element in the DOM Tree on the Elements panel to add or edit the element's class
attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With