Created
September 17, 2015 07:23
-
-
Save revelt/6d91c846b5b1d346fd57 to your computer and use it in GitHub Desktop.
if you want fluid pre-code boxes that wrap their code content, but don't introduce hardcoded line breaks when you copy-paste, you need this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*this is the best CSS setup for <pre> <code> chunks: */ | |
pre{ | |
display: block; | |
word-break: break-all; | |
word-wrap: break-word; | |
white-space: pre-wrap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment