Welcome to the home of the Caravel CMS
 Home  -  News  -  Download  -  Features  -  Documentation
Some of my styles show up on the template but not on pages using this template. Why?

This is another very common problem. To understand what is happening it helps to understand how Caravel sets up its CSS files. Every template has a CSS file associated with it, the same is true for pages. So if you have a page using a specific template then that templates css file will be included first and then right afterwards that pages css file. Thus it is possible to overwrite a css selector by setting it in the pages css file.

For example, lets say you set all blocks borders to be 1 px and black in the template css file. Then, in the page css file, you set all block borders to be 2px and blue. In this case the borders would all be blue and 2px thick. The pages css will be the one that is applied to all page blocks because it is included after.

Thus if you are ever losing template styles on a page make sure that they are not being overwritten in the page CSS file.

Copyright © 2006 Caravel CMS
Page last modified 03/22/2006
Powered by Caravel CMS v3.4, Copyright © 2003-2010 Mennonite.net. All rights reserved.