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

              
                <html>
  <head>
    <meta charset="utf-8">
    <title>Kendrick Lamar</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
<body>
  
 <div class="container">
  <div class="jumbotron text-center">
    <h1>Kendrick Lamar</h1>
    <p>the greatest rapper of the millenial generation</p>
  </div>
     <div class="row-fluid">
       <div class="col-md-6 img-border-caption">
         <figure class="figure">
     <img class="img-responsive figure-img" alt="kendrick lamar" src=http://www.billboard.com/files/styles/article_main_image/public/media/Kendrick-Lamar-bw-march-2016-billboard-650.jpg>
           <figcaption class="figure-caption">Kendrick Lamar by Billboard Magazine</figcaption>
         </figure>
       </div>
       <div class="col-md-6">
         <div class="jumbotron">
           <p>Kendrick Lamar, born in 1987, is an American rap and hip-hop artist. Sometimes called "k-dot", Kendrick has built a name for himself  through unique artistry and experimentation.</p>
         </div>
         <button class="btn btn-block btn-lg">
           <a class="btn" target="blank" href=https://en.wikipedia.org/wiki/Kendrick_Lamar>Wikipedia</a>
         </button>
         <button class="btn btn-block btn-lg">
           <a class="btn" target="blank" href=https://www.kendricklamar.com>Official Site</a>
         </button>
       </div>
      </div>
   <p>&nbsp</p>
   <h2 class="heading-2">Why Kendrick Lamar deserves a Tribute Page</h2> 
   <ul class="unordered-list">
     <li>He crosses genres effortlessly and sounds like no one else.</li><br>
     <li>His music is pertinent to culture and politics.</li><br>
     <li>He is always changing and growing.</li><br>
     <li>His collaborations are inspiring and fascinating.</li><br>
     <li>His multimedia, such as music videos, are full of poignant social commentary.</li><br>
   </ul>
   
  </div>  
   </body>
  </html>
              
            
!

CSS

              
                .figure-caption
{
  text-align: center;
  font-family:  sans-serif;
  padding: 5px 
}
.img-border-caption
{
  border: 5px solid #E6E6E6;
  padding: 10px;
  border-radius: 5px
}
.btn-lg {
  text-align: center;
  padding: 19px
}
.btn {
    padding: 14px 24px;
    border: 0 none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.heading-2 {
  padding-top: 1%;
  padding-bottom: 2%;
  text-align: center;
  text-transform: uppercase;
  color: #0489B1;
}
.unordered-list {
  font-family: sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 1.2em;
  text-align: center;
  background: #D4D4D4;
  border-radius: 5px;
  list-style-type: none;
  margin: .5% 7%;
  padding-left: 1px;
}
br {
  display: block;
  content: "";
  margin: .3em;
}
  
              
            
!

JS

              
                
              
            
!
999px

Console