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

+ 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

              
                <div id="main">
  <header>
    <h1 id="title">BREAD</h1>
    <div id="img-div">
      <img src="https://res.cloudinary.com/jolls/image/upload/v1531462592/bread.jpg" alt="Hands holding bread" class="breadheader" id="image">
      <div id="img-caption">"The art of bread making can become a consuming hobby, and no matter how often and how many kinds of bread one has made, there always seems to be something new to learn."</br>
    - Julia Child</div>
    </div>
    
  </header>
  
  
  <div id="tribute-info">
        <p>
   <img src="https://res.cloudinary.com/jolls/image/upload/v1533064547/bread-icon.png" alt="Bread icon" class="bread-icon">
    </p>
     <p> Donec in lacinia mi. Ut semper tincidunt est a imperdiet. Nullam ut tincidunt sem. Sed non nunc pretium, consequat sem sit amet, molestie sem. Quisque varius, neque eu eleifend convallis, sapien nunc feugiat sem, ac feugiat sem enim a purus. Pellentesque vel diam consectetur, ornare erat nec, suscipit arcu. Pellentesque cursus nunc tincidunt felis accumsan, non suscipit odio eleifend. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam pharetra massa sed dolor suscipit laoreet. Quisque vulputate erat enim, ac venenatis nulla commodo varius.</p>

<p>Morbi in nisl diam. In commodo egestas hendrerit. Curabitur fringilla porttitor arcu. Quisque eget tortor condimentum arcu sollicitudin rutrum id non velit. Nunc tincidunt magna sed dapibus ultrices. Mauris ullamcorper massa tortor, ac posuere mi fermentum a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse potenti. Proin vitae sodales metus, sit amet posuere sem. Phasellus vel ligula neque. Aenean lobortis ullamcorper hendrerit. Praesent ac mauris sagittis, lobortis erat at, egestas purus. Nunc in eros ex. Proin quis ullamcorper tellus. Phasellus eleifend neque a tortor interdum, dictum imperdiet orci malesuada. Sed dolor magna, venenatis nec rhoncus eget, faucibus ac lacus.</p>
  </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  margin: 0;
}

header {
  position: relative;
  /*outline: solid blue 1px;*/
  text-align: center;
}

#title {
  width: 100%;
  height: 50%;
  overflow: visible;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  text-shadow: 3px 2px #281e18;
  font-size: 15vw;
  color: white;
  /*outline: solid red 1px;*/
}

#main {
  max-width: 1000px;
  width: 100%;
  margin: auto;
}
#image{
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
}

/* freeze font growth when pic reaches max size */
@media (min-width: 1000px) {
  #title {
    font-size: 150px;
  }
}

/*
https://codepen.io/shshaw/full/gEiDt


*/
              
            
!

JS

              
                
              
            
!
999px

Console