Forum:I'm struggling with CSS.

I know all the correct syntax and parameters and such, but my wiki just isn't accepting it. I've looked and looked and I don't think it's just any old typo, so I figured there must be some wikia thing I don't know about.

On my common.css page I have this: .menuheader { color:#FFFF00; font-size:150%; font-variant:small-caps; !important; } and on my page I have this: Elements But the heading still appears as the default. If anyone can help me, I'd really appreciate it.

This is the wiki just for the record, note the headings.

Dr Yoshiyahu 04:28, August 24, 2012 (UTC)


 * Oasis doesn't import mediawiki:common.css by default. You should import common.css from wikia.css. -- Kangaroopowah  ( Talk ) 04:39, August 24, 2012 (UTC)


 * Kangaroo is correct, unfortunately, MediaWiki:Common.css doesn't affect the Oasis skin unless you tell it to. You haven't told it to, so the CSS isn't going into effect. The solution would be to either put the CSS in your MediaWiki:Wikia.css, or place the following @import statement at the top of your MediaWiki:Wikia.css:


 * Although this is not a problem in this case, please also be aware that the MediaWiki performs a conversion of wikitext -> HTML when you publish the page. So while you did indeed put:

 Elements
 * on the page, the MediaWiki software actually modifies the HTML structure of the webpage and inserts an extra  element. What the HTML actually looks like (use developer tools -- right-click and Inspect element to view the HTML of the webpage) is this:

 Elements
 * So, you also should keep in mind that this can potentially cause problems for you in the future (although, in this case, the extra  isn't going to hurt anything)