FAQ-1057 How to link to local CSS and other files in HTML Reports?

Last Update: 5/22/2020

When linking to a local file (*.css, *.js, image file) and using the full path to the file, you may experience that the asset does not load into your HTML report. For example, assume the following style sheet fails to load:

<link rel="stylesheet" href="C:\path\to\files\my_styles.css">

If you are sure the path is correct, try prepending file:/// to the path. For example:

<link rel="stylesheet" href="file:///C:\path\to\files\my_styles.css">

This should resolve the asset loading issue. If not, you may need to ascertain whether you have permission to access the file in the first place.


Keywords:html, report, css, javascript, style, img, image, link, file, path