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
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
You may have to write your custom CSS to the application theme.
Regards,
Swatantra
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'?
You have six places where you can place your CSS, why do you need an extra one? Can you explain better what your need is so we can help you better?In any case, to add CSS to 5. Screen, you can add it on the Style Sheet property in the Screen you want the CSS to be applied:
To add the CSS to 6. Inline, you just need to select the element (in my case an Expression) you want to apply the CSS, select the tab Styles and add your CSS directly: