Wikipedia:User scripts/Guide: Difference between revisions
Content deleted Content added
m →Loading it from a localhost web server: ce x2 [Factotum] |
m →Loading a localhost file: ce [Factotum] |
||
Line 671:
=== Loading a localhost file ===
For local development
<syntaxhighlight lang="css" style="min-width:fit-content; max-width: 40%">
@import "http://localhost/wikipediatest.css";
</syntaxhighlight>
'''Note!''' Such <code>@import</code> statements must come before any other declarations in your CSS
An alternative way is to put this line in your
<syntaxhighlight lang="javascript" copy style="min-width:fit-content; max-width: 40%">
|