Pro tip: When naming classes, it’s best practice to use hyphens as logical grouping dividers (tab-menu) and give classes specific names based on their function and not their style. Class names should use alphanumeric format (a-z and 0-9) and hyphens, and should avoid special characters.Class names are case-insensitive ("alert" is the same as "ALERT").You can also rename a class in the Style manager. The new name will be reflected in the Style manager and the Selector in the Style panel. Hover over the class name in the Selector, click the dropdown that appears, choose Rename class, rename the class, press Enter.Right-click the element, choose Rename class, rename the class, and press Enter.Press Command + Shift + Enter, rename the class, and press Enter.Double-click the class name in the Selector, rename it, and press Enter.Once a class has been created and applied to various elements, you can edit that class.Īny styling adjustments will affect all instances where that class is used throughout the site.Ī class is given a unique name based on the element type, but you can always rename it. You can select the class by clicking on the class name or by navigating to it with keyboard arrows and pressing Enter. Type in the class name in the Selector fieldĪs you start typing a class name in the Selector, you can see the class name appear in the Selector dropdown list.To apply the same class to as many elements as you want: Add a class faster from the context menu or by pressing the shortcut keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |