Template:Sfrac: Difference between revisions

From Vigyanwiki
Template>Graham87
(make it so the fraction will be read out properly by screen reders using techniques described at http://webaim.org/techniques/css/invisiblecontent/ ... this shouldn't affect the way the template displays for sighted users but if it does, scream :-))
Template>Edokter
(regular space will do)
Line 1: Line 1:
<span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">&nbsp;</span><span}} <!--
<span class="sfrac nowrap"{{#if:{{{3|}}}|>{{{1}}}<span style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">&#32;</span><span}} <!--
  -->style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!--
  -->style="display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;"><!--
   --><span style="display:block; line-height:1em; padding:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!--
   --><span style="display:block; line-height:1em; padding:0 0.1em;">{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}</span><!--

Revision as of 12:42, 6 September 2013

1/{{{1}}}

Template documentation