Template:Code/sandbox2
< Template:Code
Jump to navigation
Jump to search
Revision as of 22:35, 22 June 2011 by imported>SMcCandlish (moving spacing test cases ehre from main sandbox)
{{{1}}}
- New code
- Foo bar
fee fi fo fumbaz quux. - Foo bar
<div id="quux" class="weasel-razor">blah blah blah</div>baz quux. - Measure me: ! !
! !! !
Spaces between proportional and monospaced segments are (depending on browser) precisely or very close to precisely the same as the spaces between characters inside the monospaced segment (which are necessarily larger than those between characters in the proportional segments).
- Old code
- Foo bar
fee fi fo fumbaz quux. - Foo bar
<div id="quux" class="weasel-razor">blah blah blah</div>baz quux. - Measure me: ! !
! !! !
Spaces between proportional and monospaced segments are (depending on browser) farcically smaller than the spaces between characters inside the monospaced segment, making the content weird-looking and hard to parse.
- Comparisons
Blow up your font size to twice normal or so, and get out a ruler.
- Measure me: ! ! ! ! ! !
{{kbd}}(intentionally wider padding to match wider monospacing) - Measure me: ! ! ! ! ! !
{{kbd|spacing=n}} - Measure me: ! ! ! ! ! !
{{samp}} - Measure me: ! !
! !! !{{code/sandbox}} - Measure me: ! !
! !! !{{code}} - Measure me: ! !
! !! !<code>