EE Insider Tips
Sponsored by EE Screencasts
ExpressionEngine mini-howtos created by the EE Insider community.
EE code in CSS stylesheet
If you want to use EE code, such as a global variable to your images folder then you need to link to your style sheet using the regular path=“template_group/template_name” variable rather than stylesheet=“template_group/template_name”
There is a slight performance hit in this method, but it’s well worth it for access to global variables.
Email
Print
Post to Twitter
Post to Delicious
Add Your Comment?
You must have an EE Insider account to post comments on Insider Tips. It's fast, easy and hassle-free.
Sign up now (or login).