User:Jd/Proposal/LangCSS: Difference between revisions
Content deleted Content added
m →Idea |
|||
Line 1:
== Idea ==
Enhance accessibility by using a semantic list (<ul>). With some css magic we can keep the look 'n feel of the current lang templates :)<br />
It only requires to add some CSS to [[MediaWiki:monobook.css]] and people to use <code><div class="divlang">...</div></code> and a ul list in the lang templates (see example below).
== Result ==
|
Revision as of 18:14, 6 August 2006
Idea
Enhance accessibility by using a semantic list (<ul>). With some css magic we can keep the look 'n feel of the current lang templates :)
It only requires to add some CSS to MediaWiki:monobook.css and people to use
...
and a ul list in the lang templates (see example below).
Result
To be added to MediaWiki:monobook.css
To actually see the result, you need to add the following lines in your User:YOU/monobook.css (then, update it and refresh this page):
.divlang { background: #F9F9F9; border: 1px solid #E9E9E9; font-size: smaller; margin: 0 0 1em 0; padding: 0.5em 1em; text-align: left; } .divlang ul { display: inline; margin-left: 0; padding-left: 0; } .divlang ul li { border-left: 1px solid #E4E4E4; display: inline; list-style: none; margin-left: 0; padding: 0 0.5em; } .divlang ul li.firstlang { border-left: none; display: inline; list-style: none; margin-left: 0; padding-left: 0; }