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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <header class="pageHeader">

<main class="boxes">
  <section class="box box1">
    <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Praesentium, officiis?</p>
  <section class="box box2">
    <p>Totam asperiores quas dolor quia iusto. Repudiandae corporis numquam dignissimos.</p>
  <section class="box box3">
    <p>Quae mollitia laboriosam laborum? Error adipisci sequi magni odio quod.</p>
  <section class="box box4">
    <p>Esse necessitatibus ut repellendus excepturi nulla laudantium, dicta ipsam laborum?</p>
  <section class="box box5">
    <p>Optio incidunt vel quidem dolorum magni qui commodi explicabo inventore!</p>
  <section class="box box6">
    <div class="intro">
      <img src="" alt="random dummy image">
      <img src="" alt="random dummy image">
      <p>Minima ipsam tenetur placeat explicabo distinctio ratione fugit! Vero, minima!</p>
    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repudiandae, debitis.</p>
  <section class="box box7">
    <p>Eius, soluta optio cumque iste in enim sequi assumenda vel? Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, rerum? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Esse ipsa laborum ut aliquam totam numquam nobis rem animi consectetur eius!</p>
  <section class="box box8">
    <p>Ipsum earum, iusto officia tempore temporibus cum fugiat officiis perspiciatis.</p>
  <section class="box box9">
  <section class="box box10">
    <div class="intro">
      <img src="" alt="random dummy image">
      <p>Incidunt minus laboriosam expedita doloribus cumque obcaecati ratione esse. Ab.</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut? </p>
<aside class="sidebar">
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae distinctio laboriosam impedit eius velit repudiandae.  </p>

  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nesciunt laborum similique eaque distinctio vero veritatis.</p>


                /* Float images in the intros */
.intro img{
  float: left; 
  margin: 0 1rem 1rem 0;

  outline: 1px solid black;
  clear: both;
  overflow: auto;

  display: grid;
  grid-template-columns: 175px 2fr 1fr;
  grid-template-columns: repeat(3, 1fr);
/*   special responsive columns (from una kravets 1 line layouts) */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 1rem;

  display: grid;
  grid-template-columns: 1fr;

@media (min-width: 768px){
    grid-template-columns: 1fr 175px;
    grid-gap: 1rem;
    grid-column: span 3;
    grid-column: 1/-1; /* span all columns */
}/* end (min-width: 768px) */

/* flexbox styling */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
/*   justify-content: center;
  align-items: center; */

/* =====================================================
   makes boxes orange and changes default font
   not necessary for teh layout, just makes it look nicer
   ===================================================== */

/* General Typography */
  font-family: sans-serif;
  font-size: 3rem;

/*basic color to see box */
  background-color: orange;
  padding: 1rem;