...Technology Simplified

Friday, March 9, 2012

Remove vertical scrollbar in syntaxhighlighter

No comments :
An annoying bug in the new version of SyntaxHighlighter 3 shows vertical scrollbar on every code snippet.

To fix this, change the code under syntaxhighlighter/syntaxhighlighter3/styles/shCore.css and replace overflow: auto !important; with the code below:

.syntaxhighlighter
{...
overflow-x: auto !important;
overflow-y: hidden !important;
...
}

to:
.syntaxhighlighter {
...
overflow: hidden !important;
...
}

No comments :

Post a Comment