Add CSS classes to elements

2 October 2026
You can add CSS classes to elements from the menu and use them for shared styles.

Open an element's menu, type a class name and press Enter to add it. Tab accepts a suggested class.

When you create a new class, Pixy takes the styles shared by the selection and writes a rule for them. Add that class to another element and it gets the same styles. An existing class uses its existing rule.

The target beside the class field controls whether style changes apply to the element itself or one of its CSS rules. Pixy remembers your last choice. Moving, resizing, typing and arrow-key nudges always change the element itself, never a shared rule.

With the menu open, Pixy outlines every element the selected rule styles. Overridden values are crossed out, with the rule that overrides them beside them.

Your agent receives only the class names you add or remove, so classes your site's scripts change aren't included by accident.

Open the menu on an element on a page from your project, type a class name and press Enter.