Created
January 26, 2012 08:56
-
-
Save gr4y/1681829 to your computer and use it in GitHub Desktop.
have to test something with the white-space css prop.
This file contains hidden or 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
| /** | |
| * have to test something with the white-space css prop. | |
| */ | |
| .normal { | |
| white-space: normal; | |
| } | |
| .nowrap { | |
| white-space: nowrap; | |
| } | |
| .pre-line { | |
| white-space: pre-line; | |
| } | |
| .pre-wrap { | |
| white-space: pre-wrap; | |
| } | |
| #wrapper { | |
| width: 120px | |
| } | |
This file contains hidden or 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
| <div id="wrapper"> | |
| <p class="nowrap">nowrap ipsum dolar sit amet.</p> | |
| <p class="normal">normal ipsum dolar sit amet.</p> | |
| <p class="pre-wrap">pre-wrap ipsum dolar sit amet.</p> | |
| <p class="pre-line">pre-line ipsum dolar sit amet.</p> | |
| </div> |
This file contains hidden or 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","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment