Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
 <div class="english-style item">
   <h2>English</h2>
   <p>
     This is a text sample, for demonstration purpose only in the English, Arabic and Chinese langauge, writing-mode. Notice how the text is read from left to right (ltr) for English, right to left (rtl) for Arabic and vertical right to left (vertical-rl) for the Chinese language. I hope you got the point.

Interesting how using logical properties and values can help make the web a more open and accessible place. Cheers to logical properties.
   </p>
 </div>
  <div class="arabic-syle item">
<h2>Arabic</h2>
<p>
هذا نموذج نصي ، لغرض التوضيح فقط في اللغة العربية. لاحظ كيف يُقرأ النص من اليمين إلى اليسار (rtl) للغة العربية. أتمنى أن تكون قد فهمت هذه النقطة.

من المثير للاهتمام كيف أن استخدام الخصائص والقيم المنطقية يمكن أن يساعد في جعل الويب مكانًا أكثر انفتاحًا وسهولة. هتاف للخصائص المنطقية.  
</p>
  </div>
  
  <div class="chinese-style item">
    <h2>Chinese</h2>
    <p>
    這是文本示例,僅在中文中顯示。 注意中文是如何從右向左(rtl)讀取的。 我希望你明白這一點。

有趣的是,如何使用邏輯屬性和值可以使網絡變得更加開放和可訪問。 為邏輯屬性加油。
    </p>
  </div>
</div>
              
            
!

CSS

              
                .container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 400px;
  gap: 1rem;
}


.item{
  background: #E1E3E4;
  text-align: justify;
}

.english-style{
  writing: horizontal-tb;
  direction: ltr;
}

.arabic-syle{
  writing-mode: horizontal-tb;
  direction: rtl;
}

.chinese-style{
  writing-mode: horizontal-tb;
}
              
            
!

JS

              
                
              
            
!
999px

Console