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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.



1) Fork this Pen to your own CodePen account (click the 'Fork' button located in the upper right of this Pen).

2) Update the markup below and write CSS rules that:
 - Use a tag selector to color the headline red.
 - Use an ID selector to color the very first list item green.
 - Use a class selector to set all dates/years to bold and italic.
 - Use a child selector to underline the first <blockquote>.
 - Use a descendant selector to give all <blockquotes> a gray background color.
 - BONUS: Set the entire document in a sans-serif font and sensible line-height of your choosing.


<h1>Brief History of CSS</h1>
  <li>1994: The first work on style sheets started at CERN.</li>
  <li>December 1996: CSS was proposed as W3C standard:
      <q>CSS1 defines the language in which style sheets are written and a set of properties that designers can use to describe how documents should be presented. The properties in CSS1 cover the most common screen-based presentations.</q>
  <li>November 1997: The W3C released the first public CSS2 Working Draft.</li>
  <li>May 1998: CSS2 specification becomes a W3C recommendation.</li>
  <li>2000: Work on CSS3 was under way.</li>
  <q>CSS3 will, in effect, have all of the features that users expect from a desktop publishing environment, as well as a range of features especially suited to the context of an international and multimedia Web.</q>


              body {
  width: 50%;
  margin: 2rem auto;

/* Write your external CSS styles here */