Jump to content

Can you have php in a css file ?


madspof

Recommended Posts

Well, not exactly. You could rename your css file with a PHP extension and have it echo out the css. However, you would then lose the benefit of allowing the browser to cache the css file which reduces bandwidth usage and load times. The real question is why would you want to?

caching dont really bother me, why would you want to? a little more security? imagine you spend hrs changing a layout to make it more personal then someone comes along and in 2 seconds copies the work you spent hours doing so they can have a design more or less the same only things they have possibly changed? the icons kinda sucks lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.