Help:CSS best practices

Thinking of customizing your wikia's design via the wonders of CSS? Here are a few guidelines to help you do so with a minimum of fuss.

Use ThemeDesigner!
The simplest way to customize your wikia and ensure that any tweaks we make to the site layout is to use Wikia's ThemeDesigner feature.


 * ThemeDesigner gives you quick and easy customization abilities, such as letting you change the logo, colors, and background of your wikia.
 * Read more about it on Help:Theme designer, and visit Special:ThemeDesigner on your wikia.

Avoid clashing or lurid colors
This especially applies to the content area.


 * Not everyone's eyesight works the same as yours might - a significant number of people have issues with degraded eyesight and color blindness.
 * Different device screens also behave differently - the colors you see on your own might not work quite as well on another.

Of course, this is not easy to judge when you're working on your theme, so a few particular ideas to follow are:
 * Try to ensure good contrast between text and the background - such as dark text on a light background.
 * Background images are cool - but not if you can't read the text on top of them! note that ThemeDesigner includes a simple transparency setting if you want some of the overall background to show through the skin.
 * Try not to make anything too small, especially the main text area.

Keep the design simple
There may be a temptation to cover your wikia with icons, animations and colors - however, this can be very distracting for someone visiting the wikia.

Additionally, remember that Wikia has a fluid width - what you see might not exactly match what another user sees on a differently-sized screen. For example, investigate specifying widths as percentages instead of as absolute values - this will likely reduce the likelihood of large gaps or overlapping elements appearing.

Write readable code
Don't forget, you might not be the only person who ever customizes the wikia - try and ensure that the code you write could be read and understood by someone else. Spacing and clear names are great methods to help with this.

Additionally, add comments to code that may not be easily identifiable as to what it does - you can do this by wrapping some explanatory text in /* and */ markers above the relevant CSS. For example:

/* I am a comment */

Useful links

 * Help:Customization policy - Wikia's policy on allowed customizations
 * W3Schools - an online guide to CSS
 * CSS-Tricks - an online CSS code library of supported codes
 * The W3C CSS Validation Service - this helps check for code errors, similar to Special:CSS itself.

Further Help & Feedback
fi:Ohje:CSS:n parhaat käytännöt ru:Справка:Советы по использованию CSS fr:Aide:Bonnes pratiques du CSS ja:ヘルプ:CSSベストプラクティス pl:Pomoc:Najlepsze_praktyki_w_CSS zh:Help:CSS_最佳實踐