You're currently browsing the Ignition 8.0 docs. Click here to view the latest docs.

Perspective components have Style properties that enable you to customize the look and feel of components on the screen through various properties. These styles are based on Cascading Style Sheets (CSS), a style sheet language used for describing the presentation of a document or webpage. CSS is designed to enable the separation of presentation and content, including layout, colors, and fonts. The Perspective module uses the popular standard HTML5/CSS3 technology for its user interface (UI) layer. 

Using CSS, the Perspective Style options for components are both detailed and flexible. Styles are used in multiple places, and components can accept style information from multiple sources. There are many CSS settings available; they are all described in the Style Reference.

A group of Style settings can be saved together and given a name as a Style Class.

The following feature is new in Ignition version 8.0.8
Click here to check out the other new features

As of version 8.0.8, the Style Editor has a more robust user interface. This includes a new Applied Styles panel that displays the style names and settings as you add them to a component. 

On this page ...

Style Editor

Wherever the style property and the Styles   icon appear in the Property Editor, you can click on the icon to display the style editor.

The following menus are available in the style editor:

  • Text
  • Background
  • Margin and Padding
  • Border
  • Shape
  • Misc

The following feature is new in Ignition version 8.0.10
Click here to check out the other new features
In release 8.0.10, the Padding menu was updated to include Margin and Padding settings. For complete information, see Style Reference.

You can quickly make adjustments to the styles by clicking on them in the Applied Styles panel. 

When you hover over a style listed in the panel, a Delete  icon is displayed. Click on it to delete the style. 

If you made new edits to an existing style attribute, you can hover over the style and an Undo  icon is displayed. Click on it to revert to the previously saved setting.

You can minimize the Applied Styles panel by clicking on the Arrow  icon to the left of the name. Click the arrow again to reopen the panel.

Expanding a category enables you to set the properties associated with it. Here is an example of the Style Editor with the Text menu expanded and a few options selected:

Applying individual style elements to a component will overwrite the settings for the same style elements being applied from a Style Class.

Some components can have multiple individual Style elements, with each one focusing on a different part of the component. When these styles have a conflict, the more specific style wins out, and sets the style for that particular property.

Style Example

  1. In a coordinate view, drag a Gauge component and a Label component.
  2. Select the Gauge component and click the Styles  icon in the properties for the component. 

    The style editor is displayed. Each of the pull down menus has options. These options are described in the Style Reference.
  3. Click on the Text menu then set the following style options:
    Font Family: Verdana
    Size: 16

    As you select Style elements, they appear in Applied Styles column on the left. 

  4. Click OK.

  5. Next select the Label component and click the Styles  icon.
  6. Expand the Text menu and set the following style options:
    Font family: Verdana
    Size: 18px
    Weight: bold
    Color: #8034CC

  7. Expand the Background menu and set the following style option:
    Background Color: #FFFFCC
  8. Expand the Padding menu and set the padding to 8 for all four sides.

  9. Click OK to save the changes. You will notice those properties now appear in the components Style, letting you know that those particular elements have a style applied to them. 


Our finished example looks like this: 


Refer to Style Reference for a complete reference of all the available settings for Styles.

In This Section ...

  • No labels