Using internal style sheets in your Splunkcode

As we discussed earlier in this chapter, another way in which you can use CSS is by specifying the style as part of your header within the html code itself. This also is not the most efficient way of using CSS as it means that you would need to add the style block to all the pages that you would like to look the same.

Personally, I like to use internal style sheets to establish a set of styles that I am happy with and would like to implement across a number of pages. Once I can verify that I have all my styles working as they should be, I then move these rules into an external CSS file. This is what we are going to do with our example to show you how Splunk Web Framework allows you to define both internal ...

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.