Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment bug with line numbers #1132

Open
mzronek opened this issue May 3, 2017 · 1 comment
Open

Alignment bug with line numbers #1132

mzronek opened this issue May 3, 2017 · 1 comment

Comments

@mzronek
Copy link

mzronek commented May 3, 2017

Just wanted to leave a short note, that the current release version including the line numbers plugin has a small alignment bug. I've tested it in Chrome 58, FF Nightly and IE Edge, each of them displays the line numbers 2 Pixels below the base line. With some doctypes + IE the alignment gets even worse and is a whole line height off.

The solution for my project is actually pretty straight forward: Add "display: inline-block" to the code tag.

The bug and the solution can be reproduced with the plugin example as well: http://prismjs.com/plugins/line-numbers/

Again, this was only tested in the browsers mentioned above.

@Golmote
Copy link
Contributor

Golmote commented May 8, 2017

Hi! This is a subtle one, but you're actually right.
Unfortunately, the fix you propose won't work well with the Coy theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants