Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <div class="wrapper">
  <p style="margin-bottom: 0.5rem;">Left to Right (LTR)</p>
  <article class="media">
    <h2>Welcome to the article!</h2>
    <p>You'll learn how to prepare your website for RTL languages.</p>
  <p style="margin-bottom: 0.5rem;">Right to Left (RTL)</p>
  <article class="media" dir="rtl">
    <h2>أهلا وسهلا بك في المقال!</h2>
    <p>سوف تتعلم كيفية تحضير موقعك ليعمل باللغات من اليمين إلى اليسار.</p>


                .media {
  background: #fff;
  box-shadow: 0 5px 10px 0 rgba(#000, 0.05);
  padding: 1rem;
  margin-bottom: 2.5rem;
  h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0.5rem;
  img {
    max-width: 100%;
    border: 1px solid lightgrey;

.link {
  display: inline-block;
  margin-top: 1rem;
  //background: url("data:image/svg+xml,%3Csvg xmlns='' width='24' height='24' viewBox='0 0 24 24' fill='%231d7bb3'%3E%3Cpath d='M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z'%3E%3C/path%3E%3C/svg%3E") right center/20px no-repeat;
  //padding-right: 24px;
  color: #1d7bb3;

/* Non Demo Related Styling */
body {
  background: #f6f6f6;
  font-family: 'Rubik', sans-serif;
  line-height: 1.35;

.wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding-left: 1rem;
  padding-right: 1rem;