kueblc / LDT

Lightweight in browser syntax highlighting
https://kueblc.github.io/LDT/
159 stars 17 forks source link

Setting bold/italic will cause misalignment on Windows #3

Open kueblc opened 12 years ago

kueblc commented 12 years ago

In Firefox 3.6 and IE8 on Windows, non-regular font styles may overflow causing misalignment. This can be avoided for single line tokens by setting display to inline-block and decreasing the bottom margin, (ex, margin-bottom: -1px;).