Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vaadin:external_css [2018/02/06 13:07] (current)
admin created
Line 1: Line 1:
 +~~NOTRANS~~
 +~~Title: Adding external CSS~~
 +
 +If you won't create your own theme or simply want to change some CSS definitions,​ simply add an external CSS file to your servlet configuration:​
 +
 +<file xml>
 +<​init-param>​
 +  <​param-name>​externalCss</​param-name>​
 +  <​param-value>​../​mycustomapp.css</​param-value>​
 +</​init-param>​
 +</​file>​
 +
 +Put the mycustomapp.css into the root directory of your WebContent. It's also no problem to save the file in sub directories,​ e.g. ../​css/​mycustomapp.css but don't forget to create the folder!
 +
 +\\
 +**<fs 20px>​Hint</​fs>​**
 +
 +Use
 +
 +<file script>
 +jar!/​package/​mycustom.css
 +</​file>​
 +
 +to load the custom CSS file from the classpath.
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information