FANDOM


This is a test page. Anyone is free to use the code or examples on this page if they're at all helpful.
For a full list of test pages on the Mathmagician Wiki, see Category:Test pages.
Comment: Demonstration of page-specific CSS

The font color on this page is red. But, if you look at other pages here on my test wiki, you'll notice the font color is not red on those pages.

Question: Why is the font red only on this particular page?

Answer: Normally, if you were to use this CSS:

#WikiaArticle {
	color: red;
}

it would make the font red on every page.

But, the <body> tag has a unique CSS class that uniquely identifies a single page. You can use this to write CSS that only applies to a single page:

body.page-Page_specific_CSS #WikiaArticle {
	color: red;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.