html fragment css file

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
4/16/2014 12:12:59 PM
Gravatar
Total Posts 18

html fragment css file

I'm trying to add the css file for my html fragment that I'm putting on my website.  Whenever I try to add the css file, I get an error that says:

Invalid Custom CSS Class

I've tried different directories to put the css file thinking that would be the issue, but the error continues to show up.  Where do I put the css file?  Is there a specific format?  Thanks.

4/16/2014 12:25:47 PM
Gravatar
Total Posts 18439

Re: html fragment css file

you can only add css in css files that are loaded by your skin or you can put another css file in your skin folder and list it in the style.config file of your skin folder to make it include your file.

The Custom CSS Class setting is only a place to put a css class name

ie you could put

myclass

as the custom class, then in the css of your skin

.myclass { color:blue; }

you cannot add css in the Custom CSS Class setting, it is only for the name of a css class.

Hope that helps,

Joe

4/16/2014 12:49:32 PM
Gravatar
Total Posts 18439

Re: html fragment css file

note also that if you make changes in the css of your skin, you need to reset the skin guid under Administration > Advanced Tools > Design Tools > Cache Tool

You must sign in to post in the forums. This thread is closed to new posts.