[LON-CAPA-users] Cascading Style Sheets?
Sun, 03 Jun 2007 15:46:04 +0200
> I am trying to get cascading style sheets to work,
> and not having much luck. Has anyone done this?
Yes, we use it and it works, but it is still a bit tricky.
> First, I tried to create a file Basic.css. I can
> create the file, but LonCapa does not allow it
> to be edited.
A workaround solution:
- Create new html file Basic.htm
- Enter css commands and save
- Copy (not move/rename!) to Basic.css
- Publish Basic.css
To edit the published css file:
- Edit Basic.htm instead
- Copy Basic.htm to mystyle.css and
ignore warning, that this file is already published
- republish Basic.css
I tell you only from what I remember. It could be slightly different.
Let me know if it doesn't work.
Actually, Guy wanted to change the editor some months ago so that it
allows *.css files to be edited. Seems that we need to wait. Guy,
> Issue - apparently the css link can only be done at the
> resource level? I would like to set all the files
> (eventually a hundred or more) within the directory
> subtree Labs/... to use the same css file. If I try
> and work from the Map/Folder level, I can't set the
> "CSS file to link" parameter.
I remember that I set the "CSS file to link" parameter for whole
folders. This should work. I can check tomorrow.
Don't forget to use the relative resource space path of the published