UNPKG

1.16 kBHTMLView Raw
1<!doctype html>
2<html lang="en">
3 <head>
4 ${require('./_head.html')
5 title="RTL (Right-To-Left)"
6 description="Support for right-to-left text in Pico with dir='rtl'"
7 canonical="rtl.html"
8 }
9 </head>
10
11 <body>
12 ${require('./_nav.html')}
13
14 <main class="container" id="docs">
15 ${require('./_sidebar.html') active="rtl-link"}
16
17 <div role="document">
18 <section id="rtl">
19 <hgroup>
20 <h1>RTL</h1>
21 <h2>Support for right-to-left text in Pico.</h2>
22 </hgroup>
23 <p>To enable RTL in Pico you need to set <code><i>dir</i>=<u>"rtl"</u></code>on the <code>&lt;<b>html</b>&gt</code> element (<a href="https://picocss.com/examples/preview-rtl/">example</a>).</p>
24
25<pre><code><em>&lt;!doctype html&gt;</em>
26&lt;<b>html</b> <i>dir</i>=<u>"rtl"</u> <i>lang</i>=<u>"ar"</u>&gt;
27 <em>...</em>
28&lt;/<b>html</b>&gt;</code></pre>
29
30 <p>ℹ️&nbsp;The RTL feature is still experimental and will probably evolve.</p>
31 </section>
32
33 ${require('./_footer.html')}
34
35 </div>
36 </main>
37 <script src="js/commons.min.js"></script>
38 </body>
39</html>