Skip to content

Dear Internet Explorer user: Your browser is no longer supported

Please switch to a modern browser such as Microsoft Edge, Mozilla Firefox or Google Chrome to view this website's content.

CSS3 logo

Styling the colour of <pre><code> horizonal scrollbars

Posted 4th December 2020

No comments

Despite the absence of a proper scrollbar colouring standard in Cascading Style Sheets (CSS), there is a way to colour the horizontal scrollbar in a <pre><code> block that will work in Edge, Safari, Firefox and Chrome.

Read the full story...

Blog post thumnail

CSS Conditional Comments for Chrome and Safari

Posted 23rd July 2011


This nifty CSS hack will allow you to customise the layout of elements for Google Chrome and Apple Safari if they are only displaying correctly in Firefox and Internet Explorer.

Read the full story...