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

JavaScript

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

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

              
                <!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>NanoPhoto!</title>
  <link href="https://fonts.googleapis.com/css?family=Raleway:400,800" rel="stylesheet">
  </head>
  <body>
    
<p>NanoPhoto!</p>
<!--Levi Module-->
<img src="https://image.ibb.co/cLe7hU/levi1.jpg">
<img src="https://image.ibb.co/dz0DNU/levi2.jpg">
<img src="https://image.ibb.co/kwbbbp/levi3.png">

<!--Miura Module-->
<img src="https://image.ibb.co/k45r99/miura1.jpg">
<img src="https://image.ibb.co/dcKJp9/miura2.jpg">
<img src="https://image.ibb.co/fgY02U/miura3.jpg">

<!--Vivio Module-->
<img src="https://image.ibb.co/ep5r99/vivio1.jpg">
<img src="https://image.ibb.co/gHJNGp/vivio2.jpg">
<img src="https://image.ibb.co/dTKUwp/vivio3.jpg">

</body>
</html>
              
            
!

CSS

              
                /* Float Example
div {
  width: 500px;
/* This gets two things in the same line and form a grid.
  float: left;
}

#one {
  background-color: red;
}

#two {
  background-color: purple;
}
*/

/*Lets kill the space inbetween images with float left.*/
/*30% for 1/3rd the page responsive.*/
/*Margin Calculation: 6 Total margins, 30%/6 = 1.66%*/
/*Okay like 1% less for the border*/

img {
  width: 29%;
  float: left;
  margin: 1.65%;
  border: dotted 6px pink;
  border-radius: 10px;
}

p {
  font-family: Raleway; 
  margin-left: 1.66;
  font-size: 28px;
  border-bottom: 4px solid pink;
  width: 30%;
  /*The space between content and it's border is padding!*/
  padding-bottom: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console