Skip to content

Instantly share code, notes, and snippets.

@miketoth
Created December 17, 2018 21:46
Show Gist options
  • Save miketoth/14a59412267172cb5f4eda4ea0fd9142 to your computer and use it in GitHub Desktop.
Save miketoth/14a59412267172cb5f4eda4ea0fd9142 to your computer and use it in GitHub Desktop.
LastingGrandioseHypotenuse created by miketoth - https://repl.it/@miketoth/LastingGrandioseHypotenuse
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>1
2
3</div> renders the same as <div>1
2
3</div>
However, if you use `white-space: pre-wrap` it will try to render it as close to the string entered including whitespace.
<div style="white-space: pre-wrap">1
2
3</div> is not the same as <div>1
2
3</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment