Design and CSS styles
Version 7.x > Design and CSS styles > Where to put CSS files View modes: 
User avatar
Member
Member
positivepurchasing - 9/10/2013 4:33:34 AM
   
Where to put CSS files
Hi,


Where should I put CSS files?


Cheers
Paul

User avatar
Kentico Support
Kentico Support
kentico_filipl - 9/10/2013 5:17:26 AM
   
RE:Where to put CSS files
Hi Paul,

All CSS stylesheets can be managed through Site Manager -> Development -> CSS stylesheets. You cannot put a file there physically but you can create a new style, copy definitions from your current file and then use this style on a site. A main stylesheet used on a site can be set in Site Manager -> Sites -> <your site> -> General -> Site CSS stylesheet.

Best regards,
Filip Ligac

User avatar
Member
Member
positivepurchasing - 9/10/2013 5:29:38 AM
   
RE:Where to put CSS files
Hi, Filip.


Is it possible for a site to have more one CSS file?


Cheers
Paul.

User avatar
Kentico Support
Kentico Support
kentico_filipl - 9/10/2013 5:42:47 AM
   
RE:Where to put CSS files
Hi Paul,

Not directly but I would suggest using @import directive using which you can make references to other CSS stylesheets. You can put those files in your project directory inside App_Themes directory for instance.

More information about this can be found in the following article - Using the CSS @import Rule.

Best regards,
Filip Ligac

User avatar
Member
Member
positivepurchasing - 9/10/2013 7:48:10 AM
   
RE:Where to put CSS files
Hi, Filip.

OK, that sounds fine. Thanks.

Cheers
Paul.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/25/2013 7:38:42 PM
   
RE:Where to put CSS files
positivepurchasing wrote: Is it possible for a site to have more one CSS file?
Yes, you can put as many .css files within your App_Themes folder as you'd like and by default asp.net will automatically load them for you. I'd suggest using the feature Filip mentioned as your first option and add any other style sheets using the Themes tab of the stylesheet you've created within the UI.