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

+ 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.


                <link href=",700" rel="stylesheet">

<h1>Codepen Shop Management Tutorial</h1>


<p>Codepen allows us to quickly write HTML, CSS and Javascript. "Pens" are publically available, sharable, and even editable. </p><p>We have a Codepen account where you can <a target="_blank" href="">see our work</a>.</p>

<p>Pens can be "forked", which you can think of as "Save A Copy". You need to have a free Codepen account for this. Your fork can then be edited and changed as you like.</p>

<h2>CSS and Sass</h2>

<p>CSS is a stylesheet language that describes the presentation of an HTML (or XML) document. CSS describes how elements must be rendered on screen, on paper, or in other media.</p>

<p>To learn more, employees have access to CSS tutorials on <a target="_blank" href=""></a>.</p>

<p><a target="_blank" href="">Sass</a> is a CSS Preprocessor. Sass adds extra functionality to the CSS stylesheet language. Sass code is converted into CSS. It provides features of a programming language such as variables, loops, mathematical operations. </p>

<h2>Codepen to Monetate</h2>

<p>The pens KREA creates can be largely copy pasted directly into Monetate. However there are some things to be aware of:</p>

  <li>Read the Comments
    <ul><li>The HTML, CSS, and pen itself all contain comments (grayed-out text) describing the structure and behaviour of each element. This should help you to understand what the code does.
  <li>Ensure you copy the correct element for the correct language:
    <ul><li>The Toplevel Banner demo pen includes one HTML element for each language. If you need to create a Monetate placement for, for example, French, please only copy the HTML element for French language.</li></ul>

    <li>Edit Sass, not CSS
    <ul><li>If you're going to make changes to the code, make any changes possible using Sass, then copy paste the CSS. For example the Toplevel banner's text color is controlled by the <code>$berry</code> variable. Change this to modify the color of all Toplevel banner text. Latin font-size is controlled by three variables: <code>$latin-font-size, $latin-font-size-tablet, $latin-font-size-desktop</code>. Modify these variables to control the display of Latin text across all breakpoints.</li></ul>
    Copy CSS, not Sass
    <ul><li>Monetate cannot process Sass. You need to copy and paste the compiled CSS into Monetate. To do this, click the small 'View Compiled' button in Codepen's CSS window.<img src="" alt="" /></li></ul>


<h2>Going Forward</h2>

<p>KREA will publish well commented, easy to understand pens that are production ready. Codepen was previously both a working and deployment environment, however from now on we'll work locally, then publish the final code to Codepen when it's ready for Monetate. This should avoid publishing any errors or testing code to Monetate.</p>

<h2 class="thanks">Thanks!</h2>


                $mycolor: lighten(#993366, 10%);
$myblack: lighten(#393536, 0%);
$mybgnd: lighten(#f8f9ec,5%);
$myunit: 20px;

body {
  line-height: 1.6;
  background: $mybgnd;
  padding: $myunit*2;
  font-family: 'Roboto', Helvetica, sans-serif;
  font-size: $myunit;
  color: $myblack;
  code {
    background: lighten(#ccc,10%);
    color: #333;

a,a:visited {
  color: $mycolor;
  font-weight: 700;

h1 {font-size: 2.2em;}
h2 {font-size: 1.4em;}

h1,h2 {
  font-weight: 700;
  margin-top: $myunit*4;
  color: $mycolor;
  border-bottom: 5px solid $mycolor;

h1:first-of-type {margin-top: 0;}

ul li {
  font-weight: 700;
  ul {
    list-style-type: none;
    margin-top: $myunit;
    padding-left: $myunit;
    margin-left: 0;
    img {margin: $myunit 0;}
    li {
       font-weight: 400;
       margin-bottom: $myunit;

.thanks {
  margin: $myunit*12 0;
  text-align: center;
  border-bottom: 0;