![]() | This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||
|
From WP:Deviations
In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes. This is because the site-wide CSS is more carefully tested to ensure compatibility with a wide range of browsers; it also creates a greater degree of professionalism by ensuring a consistent appearance between articles. Deviations from standard conventions are acceptable where they create a semantic distinction (for instance, the infoboxes and navigational templates relating to The Simpsons use a yellow colour-scheme instead of the customary mauve, to tie in with the dominant colour in the series) but should not be used gratuitously.
By adding random |titlestyle=background: lavendar
, |groupstyle=background: mauve
, |belowstyle=background: yellow
statements, you are using "inline style attributes" to set styles for "block-level elements". These styles should be set by "CSS classes" in
MediaWiki:Common.css. Just adding colours because "I like them" or because "I think they look pretty" is not very professional. In addition, visually impaired editors use
Special:MyPage/skin.css to set personal colour schemes with greater colour contrast. By overriding these with "inline style attributes" you are reducing the
WP:Accessibility of the articles. Thank you.
Frietjes (
talk)
15:22, 23 May 2011 (UTC)
.navbox-title, table.navbox th { background: #ccccff; /* Level 1 color */ } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background: #ccccff; /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: #ccccff; /* Level 3 color */ }