Fandom

Community Central

Admin Forum:CSS for individual pages outside of main namespace

19,016pages on
this wiki
Add New Page
Talk0 Share

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.

This Forum has been archived

Forums: Admin Central Index Technical Help CSS for individual pages outside of main namespace
Central's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 187 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


I've been trying for over an hour to define a CSS style for a page outside the main namespace. But I can't quite figure out the nomenclature. For instance, I'm trying to change the pre style of only MediaWiki:Wikia.css. The basic form for page styling is well understood:

body.page-whatever element { style }

This will successfully apply sstyle to the element on the page called whatever only.

But I can't seem to figure out how to successfully refer to Wikia.css. I've tried:

body.page-MediaWiki:Wikia.css
body.page-Wikia.css
body.page-NS-8:Wikia.css
body.page-ns-8:Wikia.css
body.page-ns_8:wikia.css
...
and lot of other varitions in between

None of it seems to work. Anybody got any cues on the right way to refer to a MediaWiki (or any other non-main namespace) page? czechout@fandom    fly tardis  <span style="">04:06: Thu 17 May 2012 

Never mind. Figured it out. It's all underscores. So .page-MediaWiki_Wikia_css czechout@fandom    fly tardis  <span style="">04:24: Thu 17 May 2012 

Also on Fandom

Random Wiki