Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Re: Load CSS through $PAGE

$
0
0
by Davo Smith.  

Although, unless you have a specific requirement that means you really have to load a separate stylesheet for the page, it is usually a better idea to create a file called 'styles.css' in the base folder of your plugin (e.g. blocks/myplugin/syles.css or mod/myplugin/styles.css ) and put your CSS definitions in there. That way it will be integrated into the single CSS file downloaded on all Moodle pages (avoiding the overhead of downloading a separate file).


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>