You are here: Reference > Rule types > Skins > Skin form - General - Custom styles

Skin form — Components tab — General — Custom styles

 

You can specify a custom style on the Advanced tab of the cell properties panel. You must enter the custom style name.

To add a custom style:

  1. Click Add item.
  2. Type a Style Name that describes the purpose, rather than the style, using lowercase characters and hyphens, as needed. Note the primary category of purpose first, for example, ".marker-form-error", not FormErrorMarker_DivWhite". custom_ is prepended to the class name that you specify.
  3. Define the style in the CSS field. Click the Gear icon to open the Style Editor.
    To edit an existing custom style, click in the row that you want to edit, and then the Gear icon to open the Style Editor.

Note: You must type the name custom_classname on the Advanced tab of the cell properties panel to use this custom style.

As a best practice, refer to CSS files, classes, and identifiers using lowercase and hyphens. Hyphens improve readability, the semantic value of the item, and match the syntax of CSS attributes, for example, margin-left. Avoid articles and conjunctions, such as the, and, or, if, etc.

To delete a custom style, select the style and click the delete icon.

You can remove inline styles, in a single step, from all unlocked sections in your application from the HTML Application Readiness landing page.

When customizing layout styles, it is a best practice to define a custom style in a skin and not inline styles within the layout's properties panel. When you save a section that contains an inline style, a guardrail warning appears and you have the option to use the Remove Inline Style command button.

Related topics

Skin rules — Completing the Components tab

About Skin rules