SPLK-1004 · Question #10
Which syntax is used when referencing multiple CSS files in a view?
The correct answer is C. <dashboard stylesheet=custom.css stylesheet=userapps.css>. When referencing multiple CSS files in a Splunk dashboard view (within Simple XML), the correct approach is to include separate stylesheet attributes for each CSS file. The syntax for this would be similar to <dashboard stylesheet="custom.css" stylesheet="userapps.css"> (Option…
Question
Which syntax is used when referencing multiple CSS files in a view?
Options
- A<dashboard stylesheet="custom.css, userapps.css">
- B<dashboard style="custom.css, userapps.css">
- C<dashboard stylesheet=custom.css stylesheet=userapps.css>
- D<dashboard stylesheet="custom.css | userapps.css">
How the community answered
(43 responses)- A5% (2)
- C93% (40)
- D2% (1)
Explanation
When referencing multiple CSS files in a Splunk dashboard view (within Simple XML), the correct approach is to include separate stylesheet attributes for each CSS file. The syntax for this would be similar to <dashboard stylesheet="custom.css" stylesheet="userapps.css"> (Option C). This method allows the dashboard to load and apply the styles from both CSS files, enhancing the dashboard's visual appearance and user interface design.
Topics
Community Discussion
No community discussion yet for this question.