Reputation: 8017
I've just written joomla module. This is basic but working version of my moule. I want to 'effectize' it, so i need to work with some css. Elements of my module has own classes so i can style it very easy. But where to put CSS?
Upvotes: 0
Views: 350
Reputation: 2384
The assets for your Joomla extension should be put in the /media folder.
Eg:
For a module called mod_supermodule, put the files in:
/media/mod_supermodule/css
/media/mod_supermodule/images
/media/mod_supermodule/js
Upvotes: 0
Reputation: 1078
Yes but would still recommend to put CSS in a seperate folder as suggested by Will Mavis as it is the right professional approach.
Upvotes: 0
Reputation: 393
I typically just create a css folder under my module's directory. You can then use this call to include your css from your module's php code: JDocument::addStyleSheet
Upvotes: 1