Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

              
                <nav>
  <div class="centre">
    <h4>Quantum Fuzziness</h4>
    <ul class="clearfix">    
      <li>
        <h3>
          <a href="#">Imaginary Time</a>
        </h3>
        <div class="date">3 hours ago</div>
      </li>
      
      <li>
        <h3>
          <a href="#">Alpha Particles</a>
        </h3>
        <div class="date">4 days ago</div>
      </li>
      
      <li>
        <h3>
          <a href="#">M Theory</a>
        </h3>
        <div class="date">1 week ago</div>
      </li>
      
    </ul>
  </div>
</nav>

<main>
  
  <article>
    
    <h2>Imaginary Time</h2>
    
    
    <p>Imaginary time is a concept derived from quantum mechanics and is essential in connecting quantum mechanics with statistical mechanics.</p>
    
    
    <blockquote>One might think this means that imaginary numbers are just a mathematical game having nothing to do with the real world. From the viewpoint of positivist philosophy, however, one cannot determine what is real. All one can do is find which mathematical models describe the universe we live in. It turns out that a mathematical model involving imaginary time predicts not only effects we have already observed but also effects we have not been able to measure yet nevertheless believe in for other reasons. So what is real and what is imaginary? Is the distinction just in our minds?<br><small>Stephen Hawking</small></blockquote>
    
    <p>
      Imaginary time can be difficult to visualize. If we imagine "regular time" as a horizontal line running between "past" in one direction and "future" in the other, then imaginary time would run perpendicular to this line as the imaginary numbers run perpendicular to the real numbers in the complex plane. Imaginary time is not imaginary in the sense that it is unreal or made-up — it simply runs in a direction different from the type of time we experience. In essence, imaginary time is a way of looking at the time dimension as if it were a dimension of space: you can move forward and backward along imaginary time, just like you can move right and left in space.</p>
    
    
    <p class="post-end clearfix">3 hours ago<span>I. Newton</span></p>
    
  </div>
</article>



<article>
  <h2>Alpha Particles</h2>
  
  <p>An alpha particle is a particle made up of two protons and two neutrons. Since this configuration is similar to that of a helium nucleus, it’s often referred to as a helium nucleus. The term is commonly used in nuclear physics, and is one of the three particles commonly emitted during a radioactive decay, i.e., alpha, beta, and gamma particles.</p>
  
  <p>Alpha particles gained prominence during the early days of particle physics when scientists used them as projectiles to bombard certain targets. One of the most widely celebrated experiments that made use of alpha particles was that of Ernest Rutherford’s that led to the discovery of the atom’s structure.</p>
  
  <p>Using alpha particles as projectiles and gold foils as targets, Rutherford was able to come to the conclusion that atoms were made up of very dense positively charged cores with the much lighter negatively-charged electrons orbiting around it. His conclusion was based on the observation that the trajectories of the alpha particles were slightly deviated (as expected) at most times but in rare instances bounced off like ping-pong balls thrown against a wall.</p>
  
  
  <p class="post-end clearfix">4 days ago<span>L. Boltzmann</span></p>
</article>

<article>
  <h2>M Theory</h2>
  
  
  
  <p>In theoretical physics, M-theory is an extension of string theory in which 11 dimensions of spacetime are identified as 7 higher-dimensions plus the 4 common dimensions (11D st = 7 hd + 4D). Proponents believe that the 11-dimensional theory unites all five 10 dimensional string theories (10D st = 6 hd + 4D) and supersedes them. Though a full description of the theory is not known, the low-entropy dynamics are known to be supergravity interacting with 2- and 5-dimensional membranes.</p>
  
  <p>This idea is the unique supersymmetric theory in 11 dimensions (11D), with its low-entropy matter content and interactions fully determined, and can be obtained as the strong coupling limit of type IIA string theory because a new dimension of space emerges as the coupling constant increases.</p>
  
  <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Calabi_yau.jpg/230px-Calabi_yau.jpg"></p>
  
  <p>Drawing on the work of a number of string theorists (including Ashoke Sen, Chris Hull, Paul Townsend, Michael Duff and John Schwarz), Edward Witten of the Institute for Advanced Study suggested its existence at a conference at USC in 1995, and used M-theory to explain a number of previously observed dualities, initiating a flurry of new research in string theory called the second superstring revolution.</p>
  
  <p>In the early 1990s, it was shown that the various superstring theories were related by dualities which allow the description of an object in one super string theory to be related to the description of a different object in another super string theory. These relationships imply that each of the super string theories is a different aspect of a single underlying theory, proposed by Witten, and named "M-theory".</p>
  
  
  <p class="post-end clearfix">1 week ago<span>M. Planck</span></p>
  
</article>
</main>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Droid+Serif:400,700,400italic,700italic|Droid+Sans:400,700');

/* CLEARFIX */
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0; }

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height: 100%;
  min-width: 320px;
  max-height: 100%;
  font-size: 62.5%; }

body {
  height: 100%;
  max-height: 100%;
  font-family: Droid Serif, Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.5em;
  color: #3A4145;
  width: 100%;
  background: #333 }

::selection {
  color: #ffffff;
  background: #FF3399;
  text-shadow: none;
}

h2, h3, h4 {
  text-rendering: optimizeLegibility;
  line-height: 1;
  margin-top: 0;
  font-family: 'Droid Sans', Arial, sans-serif;
  font-weight: 400;
  color: #566160; }

h2 {
  font-size: 2.8rem;
  line-height: 1.2em;
  letter-spacing: -1px;
  text-indent: -2px; }

h3 {
  font-size: 2.4rem; }

h4 {
  font-size: 2.0rem; }

a {
  color: #4a4a4a;
  transition: color ease 0.3s, border ease 0.3s, background ease 0.3s; }

a:hover {
  color: #57A3E8; }

h2 a, h3 a, h4 a {
  color: #50585D; }

p, ul, ol {
  margin: 1.6em 0; }

ol ol, ul ul,
ul ol, ol ul {
  margin: 0.4em 0; }

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #efefef;
  margin: 3.2em 0;
  padding: 0; }

blockquote {
  margin: 1.6em 0 1.6em 0;
  padding: 0 0 0 1.6em;
  border-left: #4a4a4a 0.4em solid;
  margin: 0.8em 0;
  font-style: italic; }

blockquote small {
  display: inline-block;
  margin: 0.8em 0 0.8em 1.5em;
  font-size: 0.9em;
  color: #ccc; }

blockquote small:before {
  content: '\2014 \00A0'; }

article p:first-of-type:first-letter {
  float: left;
  font-size: 5.8rem;
  line-height: 5.4rem;
  margin: 0 6px 0 0; }

nav {
  position: fixed;
  z-index: 1;
  font-size: 18px;
  line-height: 48px;
  top: 0px;
  bottom: 0;
  left: 0;
  width: 40%;
  background-color: black;
  color: #ffffff;
  text-align: center;
  overflow: auto;
}

h4 {
  font-size: 4rem;
  margin: 0 auto;
  padding: 0 10%;
  color: #ffffff; }

.centre {
  top: 25%;
  width: 100%;
  height: 50%;
  position: absolute;
}

nav ul {
  display: block;
  list-style: none;
  padding: 46px 11.4%;
  margin: 30px 0 30px 0;
}

nav li {
  float: left;
  width: 100%;
  border-bottom: 1px solid #555555;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0; }

nav li:last-child {
  border-bottom: none; }

nav {
  color: #666666; }

nav a {
  color: #666666;
  text-decoration: none; }

nav a:hover {
  color: #ffffff;
  text-decoration: none; }

h3, h4 {
  font-family: Montserrat, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700; }

h3 {
  margin: 0;
  padding: 0;
  font-size: 2rem; }

nav li .date {
  font-size: 1.2rem;
  line-height: 2rem; }

main {
  width: 60%;
  position: relative;
  padding: 0;
  margin: 0 0 0 40%;
}

article {
  padding: 40px 11.14%;
  word-break: break-word;
  hyphens: auto;
  background-color: #ffffff;
  border-radius: 4px; }

h2 {
  font-size: 7.4rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: Montserrat, Arial, sans-serif;
  text-align: center;
  opacity: 0.95;
  padding: 0 11.4%;
  font-style: normal;
  font-size: 4.2rem;
    line-height: 4.6rem;
    padding: 0;
}

  h2, h2 a {
    color: #333638; }

.post-end {
  color: #BBC7CC;
  margin: 0;
}

.post-end span {
  float: right;
  font-style: italic; }

article img {
  display: block;
  max-width: 100%;
  margin: 0 auto; }

  article {
    padding: 8%; }


@media only screen and (min-width: 900px) {
  article {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px dotted #222;
  } }

@media only screen and (max-width: 900px) {

  nav {
    display: none; }

  blockquote {
    margin-left: 0; }

  p:first-child:first-letter {
    font-size: 5.2rem;
    line-height: 5rem;
    margin: 0 4px 0 0; }

  main {
    width: 80%;
    max-width: none;
    margin: 10%; }

  article {
    font-size: 0.9em;
    line-height: 1.6em;
    margin-bottom: 30px;
    padding: 8%;
  }

  h2 {
    font-size: 2.4rem;
    line-height: 1.1em;
    letter-spacing: 0; }

  h3 {
    font-size: 2.0rem;
    line-height: 2.2rem; }

  h4 {
    font-size: 1.8rem;
    line-height: 2.0rem; }}

@media only screen and (max-width: 500px) {
  
  main {
    width: 95%;
    max-width: none;
    margin: 3% auto; }

  article {
    width: auto;
    font-size: 0.8em;
    line-height: 1.6em; }

  p:first-child:first-letter {
    font-size: 4.4rem;
    line-height: 4.6rem;
    margin: 0 4px 0 0; }

  h2 {
    font-size: 2.4rem;
    line-height: 1.1em;
    letter-spacing: 0; }

  h3 {
    font-size: 2.0rem;
    line-height: 2.2rem; }

  h4 {
    font-size: 1.8rem;
    line-height: 2.0rem; }
 }
              
            
!

JS

              
                
              
            
!
999px

Console