#How to make individual css for templates?
11 messages · Page 1 of 1 (latest)
Use the templatestyles extension?
https://www.mediawiki.org/wiki/Extension:TemplateStyles
If you are running into issues where the stylesheet of one template is messing up the stylesheet of another template, prefix your css rules with container classes.
For example,
<div class="infobox1">
...
</div>
CSS:
.infobox1 .title {
...
}
so do i just create a page named Infobox/styles.css?
Yes. And also add <templatestyles src="Example/styles.css" />
Add it to the template
The documentation should have sufficient info about this.
There's also https://meta.miraheze.org/wiki/Help:How_to_write_HTML_and_CSS if you want to know your options.