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

              
                
<body>
  
  <article>
    <h1>Cawd</h1>
    <h3>Computer Animation and Web Design</h3>
  <p>Cawd is the computer animation and web design program at the Center for Technology, Essex.</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatum eaque iure quod aliquam nesciunt dolorum, numquam exercitationem quaerat reiciendis repellat dolores eligendi dolore a voluptatibus laborum fuga. Incidunt in nihil possimus non laudantium, atque voluptate, et culpa voluptatibus nulla laboriosam error, recusandae ab dignissimos aspernatur obcaecati molestiae! Cum labore inventore ullam velit et nulla? Soluta, alias dolorem aspernatur nulla nam facere sint dolore eligendi molestias exercitationem itaque enim deleniti maxime et explicabo earum necessitatibus similique deserunt nostrum, atque omnis? Facilis.</p>
</article>
  
</body>

<!-- Understanding em and rem:
For example: if the <p> tag is set to 1rem it ignores the parent div’s font-size of 28px. However, if we instead set the font-size to 1em, the paragraph would inherit the 28px font-size of its parent element. -->
              
            
!

CSS

              
                
html { 
font-size:16x;
  
  
}

h1{
  font-size:4.2rem;
}

h3{
  font-size:2.3rem;
}


body{

}


p{
  line-height:1.5;
  margin:1rem;
  font-size:4vmin;

 
}

/* em – relative to the element’s font-size
rem – relative to the root element’s font-size
vw – relative to 1% of your browser’s viewport width
vh – relative to 1% of your browser’s viewport height
vmin – relative to 1% of the smaller of the two browser viewport dimensions (height or width).
vmax – relative to 1% of the larger of the two browser viewport dimensions (height or width).
% – relative to 1/100 of the parent element’s width. */


article{
  width:800px;
  height:900px;
  background-color:gold;
  
  
}
              
            
!

JS

              
                
              
            
!
999px

Console