Skip to content

Commit

Permalink
Add additional work to clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
zfox23 committed Nov 6, 2023
1 parent ce4257a commit 6338ec1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions live-examples/css-examples/math-functions/function-clamp-01.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>

<div class="example-choice">
<pre><code class="language-css">width: clamp(25px, 1px, 150px);</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">width: clamp(25px, 999999px, 150px);</code></pre>
<button type="button" class="copy hidden" aria-hidden="true">
<span class="visually-hidden">Copy to Clipboard</span>
</button>
</div>
</section>

<div id="output" class="output large hidden">
Expand Down

0 comments on commit 6338ec1

Please sign in to comment.