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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <main class="main">
  <header>
  <h1 class="title">Lorem Ipsum ภาษาไทย</h1>
  <span class="date">29 January 2019</span>
  </header>
  <div class="content">
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam felis ex, hendrerit id sapien ac, vehicula commodo elit. Morbi ut orci venenatis, hendrerit elit sit amet, vehicula ipsum. Sed at tristique mi, auctor tincidunt dolor. Nulla gravida, dui vitae malesuada placerat, est lorem fringilla lacus, quis molestie lectus mi id arcu. Donec nec erat mattis, pretium leo faucibus, fermentum eros. Sed porta massa eget est aliquet pretium. Pellentesque sollicitudin vehicula nisl quis pretium. Nunc non maximus ex, in faucibus est. Duis fringilla sapien ut dui commodo, quis dignissim nunc tincidunt. Aenean fermentum massa nulla, eget feugiat nulla gravida sed. Curabitur vel risus eros. Duis commodo justo ac viverra ultrices. 
    </p>
    <p>
       Cras odio lectus, tincidunt sit amet metus sed, semper vulputate enim. Phasellus pulvinar pellentesque finibus. Nunc lacinia tellus orci, id euismod ipsum tristique id. Phasellus eros odio, eleifend ut justo a, venenatis rutrum felis. Proin sed posuere magna, at fringilla ex. Pellentesque convallis consequat sapien. Vivamus nisi ligula, dignissim in mattis vitae, posuere tempor risus. Fusce vulputate congue dui, vel luctus sapien sodales vitae. Sed ullamcorper lobortis libero, nec ullamcorper eros pretium at. Etiam tincidunt tortor ut diam convallis, vitae consectetur lorem blandit. Suspendisse ut porttitor nulla. Phasellus semper metus sit amet orci ornare porta. Nunc tempus sed nibh efficitur sagittis. Maecenas rutrum euismod velit, ut dictum enim faucibus sed.
    </p>
    <p>
      Aliquam porta quam odio, ut eleifend lacus imperdiet id. Suspendisse laoreet lacus eu fermentum malesuada. Morbi id sapien malesuada, finibus risus et, condimentum risus. Mauris pretium nisi vel commodo luctus. Aliquam id tortor fringilla, accumsan arcu vel, finibus diam. Mauris quis tincidunt tortor, eu tempus tortor. Donec eget pharetra nisi. Cras finibus vel ligula ut efficitur. Nam pretium eget tellus et placerat. Cras vitae lobortis ligula, sed pretium justo. Aenean vehicula ipsum at neque sagittis, id malesuada sapien pharetra. Quisque porta nulla in dui efficitur, nec ornare tellus fermentum. 
    </p>
    <p>
       Vestibulum condimentum sem sodales, sodales magna faucibus, accumsan neque. Vestibulum cursus ex quis interdum tristique. Etiam varius lacinia ante, et laoreet urna pharetra aliquet. Aliquam vehicula, justo eget congue porttitor, leo nunc sodales metus, ac convallis diam mauris vel massa. Ut tempus sem non laoreet sodales. Nam elementum in odio et pellentesque. Nulla facilisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus ut laoreet nunc. Sed ut posuere enim. 
    </p>
    <p>
       Integer turpis arcu, venenatis nec condimentum non, placerat eget sem. Curabitur varius enim sem. Ut maximus fermentum ultrices. Donec dignissim finibus nisl, eu facilisis felis malesuada sed. Donec quis rhoncus neque. Vestibulum semper, ex eu consequat tempus, arcu nulla vehicula felis, sit amet iaculis dui purus ac libero. Praesent porta lacus malesuada, placerat ipsum ut, bibendum est. Nunc sit amet lobortis nulla. Proin laoreet, arcu sed bibendum molestie, lectus nibh elementum odio, a varius velit neque ac neque. In cursus, lectus eget lacinia fringilla, diam felis interdum erat, at faucibus leo augue in turpis. Suspendisse pellentesque nisl vitae arcu consequat pharetra. Pellentesque vel varius sapien. Suspendisse sit amet felis luctus, ullamcorper magna et, lacinia libero. Etiam dapibus arcu tempor purus dignissim, ut tincidunt eros congue. Cras orci elit, finibus vitae tincidunt sed, auctor eget turpis. Duis condimentum eu enim sit amet pulvinar. 
    </p>
    <p>
      ดังนั้นผมจึงเลือกที่จะทำโปรเจคนี้เพราะว่าต้องการให้ผมสามารถโค้ดต่อไปได้โดยไม่เหนื่อยครับผม
    </p>
  </div>
</main>
              
            
!

CSS

              
                cream = #ffffec
*
  box-sizing: border-box
body
  background: cream
  font-family: "Krub", sans-serif
.main
  max-width: 1280px
  background: white
  margin: auto
  margin-top: 50px
  margin-bottom: 25px
  padding: 1rem
  width: 80%
  border-radius: 8px
  box-shadow: 10px 10px 20px alpha(lightgray, 50%)
.title
  font-weight: bold
  font-size: 3.0rem
.date
  font-size: .8rem
  color: lightgray
.content p
  margin-bottom: 2rem
              
            
!

JS

              
                
              
            
!
999px

Console