CSS Custom Styles

To define styling for the entire site using CSS code, follow these steps:

  1. Click the (gear) icon at the top menu to open the Site Administration menu, and select Custom Styles. See Defining Site-Wide Custom Styles.
  2. In the Manage Custom Styles window, click New Custom Style and click Save.
  3. In the Manage Custom Styles window, under Name, enter DarkBlueTable.
  4. To add CSS instructions, enter the following code:

    .table{
    background-color:#336699;
    }
    New Custom Style interface, with 'Save' button, 'Name' text box, 'CSS' tab (active) that contains a check box 'Autocomplete on', and a line-numbered code editing window, with simple css code, and an alternate JavaScript tab
    Defining a New Custom Style
  5. Click Save.
  6. Notice that the Manage Custom Styles window contains the new style.

    Manage Custom Styles interface, with 'New Custom Style' button, and a list of styles with one entry (DarkBlueTable) that shows 0 visuals with that style, edit icon (pencil), and delete icon (trash can)
    Manage Custom Styles Lists DarkBlueTable Custom Style
  7. When selected for a visual that contains a table, the style DarkBlueTable will have the specified coloring scheme, much like the following image.

    Table with columns 'year', 'state', and 'sum(population)'; last column has unformatted numbers; alternate rows have pale grey and deep blue background
    Table with Custom Style DarkBlueTable
  8. Note that the Manage Custom Styles interface keeps track of all visuals that use each defined style.

    In the following image, you can see the reporting after applying the style DarkBlueTable to visualization 15. Note also that the number 15 is an active link to that visualization.

    Manage Custom Styles interface, with 'New Custom Style' button, and a list of styles with one entry (DarkBlueTable) that shows 1 App with that style, active link to '15' (internal app number), edit icon (pencil), and delete icon (trash can)
    Manage Custom Styles Shows the Number and Address of Apps that Use the Custom Style