trouble accessing stylesheet
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2010 12:40 PM
I am trying to access a stylesheet in the same folder as my freemarker template. How come the page doesn't render with the styles?
<link rel="stylesheet" href="main.css" TYPE="text/css">
This is driving me crazy. I appreciate anyone's advice…
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2010 08:59 PM
Does anyone have an answer for this? I am trying to make my manager happy and add pretty colors to my freemaker dashlet. I have my css is the same folder as the ftl, but I cannot get the pretty colors to show up.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2010 03:48 AM
The CSS file needs to be directly addressable from the browser, rather than via the webscript runtime (which is how the Freemarker is being processed).
Put your CSS file somewhere outside WEB-INF, or in a separate webapp and address it directly, e.g. "/css/main.css".
Thanks,
Mike
Put your CSS file somewhere outside WEB-INF, or in a separate webapp and address it directly, e.g. "/css/main.css".
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2010 01:01 PM
Worked Perfect! Thank you. Who would have thought it was just like a regular HTML link! Ahh, simpler times….
