« Return to Thread: Adding custom CSS

Adding custom CSS

by doahh :: Rate this Message:

Reply to Author | View in Thread

I am trying to customise the CSS in CAS but would prefer not to use cas.css as I have my CSS split across several files. I have tried to include the CSS into the template in several different ways but none seem to work the way I would like.

1) <link rel="stylesheet" href="http://localhost:8080/tootired.net/cas/root-context-css/user/column-layout.css" type="text/css" media="screen" /> Works but I would prefer not to have the FQDN;

2) <link rel="stylesheet" href="/root-context-css/user/column-layout.css" type="text/css" media="screen" /> Returns a blank page with no CSS styles defines in it;

3) <link rel="stylesheet" href="<spring:theme code="css" />" type="text/css" media="all" /> Theme 'default': No message found under code 'css' for locale 'en'. Adding an entry into messages.properties does not change the error message and there is no messages_en.properties;

4) <link rel="stylesheet" href="../../../../../root-context-css/user/column-layout.css" type="text/css" media="screen" />  Does nothing;

5) <style type="text/css" media="screen">@import 'css/cas.css'/**/;</style> Doesn't work either;

6) Adding a new option to default_views.properties but it doesn't work doing that alone and I am not sure what else I would need to change to make it work.

What else can I try?

 « Return to Thread: Adding custom CSS

LightInTheBox - Buy quality products at wholesale price!