pspad:
--------------------------------------------------------------------------------
When I compared your CSS, I found the problem.
In original CSS was line-height for CODE defined as 1.2em,
--------------------------------------------------------------------------------

No, the problem are the BR tags. They are not neccessary. Normaly code comes
into a _PRE_ tag, this will show text as is. Here code is in _CODE_
tag. But with CSS you can set it to act like a PRE tag -
_white-space:pre-wrap;_.

The second magic is to _hide_ the _BR_ tags - _display:none;_.

Normaly line-height gets no unit - _line-height:1.4;_. Means 140% from
elements font-size. 1.4em also means 140%. 1.4rem means 140% of _browsers_
default font-size (rem = root em, normaly 16px (x 1.4 = 22.4px).

Fiddle playground: https://jsfiddle.net/Andreas/8g3u4q58/

-- 
<http://forum.pspad.com/read.php?6,68757,68792>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem