29
Views
4
Comments
How to import CSS file
Application Type
Traditional Web

I have tried to import the external CSS file but failed in my traditional app.

1. css file has been uploaded in resource and deployed to the target directory

2.  @import url ("/{module name}/viewpage.css"); 

Please advise

Rank: #70

Hi Jessica,


You might find issues uploading CSS as a resource, I would suggest instead on copying your CSS to the application theme Style Sheet and pages as desired.

This post explains very well the issues you find when following this approach.


Regards,
João

Champion
Rank: #106

Hi Jessica,

You may have to write your custom CSS to the application theme.


Regards,

Swatantra

Rank: #896

Thank for your advice and suggestion.

If i use 'AddStylessheetTag' to import local css file, it will be overwritten by other.

Is it possible to be located the local css file between 'Screen' and 'inline'?