Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

CSS Publish with Preview? (Bug?)

Hi, this might be a bug or already discussed, I don't know.

I am designing a single page, and when I edit and save the Style Sheet and preview a single page, CD doesn't publish the style sheet, so that changes in the style sheet are not immediately visible. Only work-around has been "publish whole site", which takes too much time.

Any tips?

R. C.
Friday, December 12, 2003

Not particularly elegant, but this should work:

Make a template consisting of {$.body$}.  Make your CSS file an article that uses this template.  When you just want to play with one file and see changes in the CSS immediately, use the {$ include $} command to put the CSS directly in the file you're working on.

Saturday, December 13, 2003

I have the following code snippet set up as a variable and insert that variable into the <HEAD> section of templates I want to use the stylesheet.

<style type="text/css" media="screen">
@import "PTMFOG0000000126.css";

The "magic name" points to the style sheet file in CD.

When I make a style sheet mod and then click "Preview on this Computer" the CSS changes are visible.

Mike Osborne
Sunday, December 14, 2003

*  Recent Topics

*  Fog Creek Home