Pen Settings



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


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.


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.


                <figure class="pizza">
  <div class="pizza__herro">
    <img src="" alt="pizza" class="pizza__img">
  <div class="pizza__content">
    <div class="pizza__title">
      <h1 class="pizza__heading">Pizza Vegetale 👌</h1>
      <div class="pizza__tag pizza__tag--1">#vegetarian</div>
      <div class="pizza__tag pizza__tag--2">#italian</div>
    <p class="pizza__description">Yummy veggie pizza with tasty olives, crisp       peppers, fresh arugula and original italian sauce.</p>
    <div class="pizza__details">
      <p class="pizza__detail"><span class="emoji">🍕</span>850 kcal</p>
      <p class="pizza__detail"><span class="emoji">⏱</span>30 min</p>
      <p class="pizza__detail"><span class="emoji">⭐</span>4.7 / 5</p>
  <div class="pizza__price">$11.99</div>


                @import url('');
green: #67b26f
blue: #4ca2cd
mid: #5aaa9d
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
body {
  font-family: roboto;
  color: #444;
  padding: 50px;
  background: linear-gradient(to bottom right, #67b26f, #4ca2cd);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
.pizza {
  max-width: 800px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px 10px rgba(0, 0, 0, 0.2);
  display: flex;
.pizza__herro {
  flex: 0 0 45%;
.pizza__img {
  width: 100%;
  height: 100%;
.pizza__content {
  flex: 1;
  background-color: white;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
.pizza__price {
  flex: 0 0 50px;
  background: linear-gradient(to bottom, #67b26f, #4ca2cd);
  color: white;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
.pizza__title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
.pizza__heading {
  font-size: 20px;
  /*flex: 1;*/
  margin-right: auto;
.pizza__tag {
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-left: 7px;
  border-radius: 100px;
.pizza__tag--1 { background-color: #67b26f; }
.pizza__tag--2 { background-color: #4ca2cd; }
.pizza__description {
  font-size: 14px;
.pizza__details {
  display: flex;
  margin-top: auto;
.pizza__detail {
  font-size: 15px;
  text-transform: uppercase;
  margin-right: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
.emoji {
  font-size: 18px;
  margin-right: 3px;