v1 docs   See v2 ↗

HTML & CSS on the page example

This example uses HTML on the page instead of the mod’s HTML.

In this example, we add HTML & CSS manually on the page (see the jsfiddle) instead of inside of the mod code (which is empty).

When written this way, Anymod will automatically use the HTML on the page, and the page’s CSS rules will also apply to mods when they match. Note that the reverse is not true: a mod’s CSS will not affect the rest of the page.