Skip to content

Commit

Permalink
Update syntax for white-space
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Jan 4, 2025
1 parent 76e8b59 commit 551adbe
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions live-examples/css-examples/text/white-space.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,37 @@
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: nowrap;</code></pre>
<pre><code class="language-css">white-space: pre;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: pre;</code></pre>
<pre><code class="language-css">white-space: pre-wrap;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: pre-wrap;</code></pre>
<pre><code class="language-css">white-space: pre-line;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: pre-line;</code></pre>
<pre><code class="language-css">white-space: wrap;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: collapse;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
<div class="example-choice">
<pre><code class="language-css">white-space: break-spaces;</code></pre>
<pre><code class="language-css">white-space: preserve nowrap;</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
Expand Down

0 comments on commit 551adbe

Please sign in to comment.