Home
001 - Basic
002 - Variables
003 - Layer
🔥 004 - Nested Rules
010 - Grid
011 - Grid Complex
012 - Grid Contents
013 - Grid Logos
014 - Grid Spanning
020 - Container
021 - Container Style Queries
030 - Focus Visible
031 - Focus Within
040 - Color Scheme
🔥 041 - Color Light-Dark
042 - Color Mix
043 - Color Mix Mixer
044 - Color Mix Palette
🔥 045 - Relative Color
🔥 046 - Relative Color Palette
050 - Mask Image
051 - Background Clip Text
060 - Accent Color
070 - Has
🔥 071 - Starting Style
🔥 072 - Transition Behavior
090 - Text Wrap
🔥 100 - Popover
🔥 110 - scroll-driven animations
999 - Playground
Loading ...
CSS
:root { --article-border-radius: 5px; --article-spacing: 1.5rem; --article-color: #313131; --article-bg: #fff; --article-shadow: 0 0 2px 1px rgb(0 0 0 / 25%); } .article-grid { margin: 0 auto; max-width: 900px; } .article { color: var(--article-color); border-radius: var(--article-border-radius); background: var(--article-bg); box-shadow: var(--article-shadow); overflow: hidden; } .article h2 { line-height: 1.25; margin: 0; margin-bottom: .5em; } .article p { margin: 0; } .article p + p { margin-top: .5em; } .article-body { padding: var(--article-spacing); }
HTML
<div class="article-grid"> <div class="article" id="target"> <div class="article-body"> <h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h2> <p> Proin hendrerit cursus orci, nec bibendum turpis ultricies vel. Pellentesque aliquam quam sit amet tortor consequat, auctor condimentum augue lacinia. </p> <p> Mauris tincidunt, ligula sit amet mollis placerat, urna lorem bibendum neque, at suscipit tellus erat id est. Curabitur aliquam mauris vel lacinia sagittis. Fusce a lacus ut diam laoreet cursus. Cras ut varius tellus, in varius ex. Ut condimentum dui vitae nisl facilisis, quis scelerisque dui elementum. </p> </div> </div> </div> <div class="form"> <div class="form-section"> <label for="textwrap">text-wrap:</label> <select id="textwrap" data-trigger="change" data-target="#target" data-property="text-wrap" > <option value="wrap">wrap</option> <option value="balance">balance</option> <option value="pretty">pretty</option> </select> </div> </div>
-a
+A
Off
1/2
1/1
2/1
Zoom
Document
Container