Created
December 11, 2012 12:55
-
-
Save thanpolas/4258350 to your computer and use it in GitHub Desktop.
Untitled
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
.codeblock { | |
width: 600px; | |
height: 200px; | |
background-color: yellow; | |
display: block; | |
} | |
.lineno { | |
background-color: #ddd; | |
width: 60px; | |
} | |
.code { | |
background-color: #ccc; | |
overflow: auto; | |
text-align:left; | |
} | |
.code pre { | |
overflow: auto; | |
} |
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
<table class="codeblock"> | |
<tr> | |
<td class="lineno"> | |
<pre> | |
1 | |
2 | |
3 | |
</pre> | |
</td> | |
<td class="code"> | |
<pre> | |
a realy long line that needs to get overflowed a realy long line that needs to get overflowed | |
Another line that needs overflow Another line that needs overflow Another line that needs overflow | |
and a normal one | |
</pre> | |
</td> | |
</tr> | |
</table> | |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment