My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
UsingCustomCss  
Using a custom CSS style sheet
Updated Feb 4, 2010 by cosmin...@gmail.com

To use custom styles for the generated HTML pages, you can now provide a value for the testNgXslt.cssFile parameter. The file will be linked after the current CSS file so you can easily overwrite specific style settings without having to copy the entire CSS block in the XSL stylesheet. However you need to inspect the CSS section (template "writeCssFile") to get the correct class names and other style identifiers.

Please note that the value of the testNgXslt.cssFile parameter must be relative to the output directory, because it will be used directly in the href attribute of a <LINK> tag:

...
<LINK rel="stylesheet" href="{$testNgXslt.cssFile}"/>
...

This parameter is not mandatory.

Comment by andreas....@gmail.com, Mar 18, 2008

I think allowing to overwrite is a good additional feature. However, I think it might be better to provide an additional CSS link that can be used to overwrite existing definitions rather than completely replace the current one. Browsers do not complain if a CSS file is missing, but you still could use the test for excistance. Such an approach would keep the additional CSS file concentrated on the changes only.

Comment by LightGua...@gmail.com, May 13, 2009

I agree with Andreas, his approach seems better / cleaner


Sign in to add a comment
Powered by Google Project Hosting