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.


                <body class="site">
  <header class="site__header">
    <p>When: <span class="block">May 10-12</span></p>
    <p>Where: <span class="block">UCL London</span></p>
     <nav class="site__nav">
      <ul class="site__nav-list">
        <li><a class="site__nav-link" href="/">Tickets</a></li>
        <li><a class="site__nav-link"  href="/">About</a></li>
        <li><a class="site__nav-link"  href="/">Contact</a></li>
  <main class="main">
    <div class="container">
      <h1 class="heading">
        <br />
        <mark>Golden Makers</mark>
        <br />  
        <mark>Awards &amp; Ceremony</mark>
      <div class="placeholder">Main Component here</div>



                * {
  box-sizing: border-box;

html {
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  line-height: 1.25;

.site {
  background: radial-gradient(50% 50% at 50% 50%, rgba(123, 131, 126, 0.9) 0%, rgba(54, 75, 73, 0.9) 100%), #364b49;
  background-repeat: no-repeat;
  color: #FFF;
  min-height: 120vh; // allows room for scrolling to see parallax
  height: 100%;

.site__nav-list {
  display: flex;

.site__header {
  height: 100%;
  padding: 1.25rem 0;
  position: fixed;
  right: 1.25rem;
  top: 0;
  writing-mode: vertical-rl;

.site__header > * {
  flex: 1 1 auto;
  padding-bottom: .625rem; // to ensure the text beside it never touches

.site__nav {
  padding-bottom: 0;

.site__nav-list {
  justify-content: space-between;
  list-style-type: none;

.site__nav-link {
  display: block;
  text-decoration: none;
  color: #FFF;
  padding-bottom: .625rem;

// remove extra padding on last child
.site__nav-list li:last-child .site__nav-link {
  padding-bottom: 0;

// utility class
.block {
  display: block;

.main {
  padding: 5rem 0;
  display: flex;
  justify-content: center; // center content horizontally
  align-items: center; // center content vertically
  min-height: 100vh; // make content as tall as the viewport
  width: 100%;

.container {
  position: relative;

.heading {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 2rem;

  @media screen and (min-width: 40rem) {
    font-size: 2rem;
    left: 0;
    position: absolute;
    top: 6rem;

mark {
  color: #FFF;
  background-color: #000;
  line-height: 1.35;
  padding: .375rem;

.placeholder {
  background-color: #FFF;
  color: #000;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 400px;