Implementing your own CSS style

We can now start to implement CSS in our dashboard code to change the look and appearance of our visualizations, headings, text, and background colors, to name only a few. As with most CSS implemented in HTML code, within a Splunk HTML dashboard, there are three ways that we can incorporate CSS:

  • Inline style: We can specify the styles of the specific element directly when we announce it in the code.
  • Internal style sheet: This is where we can define the style sheet rules within the header of our HTML code using the style element.
  • External style sheet: We can also define rules in a separate .css file within our Splunkenvironment and then refer back to this set of style sheet from within our dashboard HTML code. An external ...

Get Learning Splunk Web Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.