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

              
                <head>
  <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700,300italic' rel='stylesheet' type='text/css'>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
        <div class=header-image>

          <img src="https://i2.cdn.turner.com/cnnnext/dam/assets/140225144422-anthony-bourdain-profile-full-169.jpg">
          <div id="header-text">
            <h1>
          <span>
            <span class="spacer">
            Anthony Bourdain
            </span>
            <br>
            <span class="sub-text sub-spacer">
              adventurous inspiration
            </span>
          </span>
          </h1>
          </div>
          <a id="source" href="http://www.cnn.com/shows/anthony-bourdain-parts-unknown" target="_blank">image source: CNN.com</a>
        
        <div class="row">
          <div class="col-md-8" id="quotes">
            <div class="quotes">Quotes
               <img id="left-knife" src="http://bjswing.rocks/wp-content/uploads/2015/05/Knife.png">
            </div>
            <ol>
              <li>“Skills can be taught. Character you either have or you don't have.”</li>
              <li>“The journey is part of the experience – an expression of the seriousness of one’s intent. One doesn’t take the A train to Mecca.”</li>
              <li>"Travel is about the gorgeous feeling of teetering in the unknown."</li>
              <li>“Luck is not a business model.”</li>
              <li> "I'm not afraid to look like an idiot."</li>
              <li> “Your body is not a temple, it's an amusement park. Enjoy the ride.”</li>
            </ol>  

          </div>
          <div class="col-md-4">
            <div class="quotes">About<img id="about-knife" src="http://bjswing.rocks/wp-content/uploads/2015/05/Knife.png">
            </div>
            <div class="about+info">
              <ul>
                <li class="title">Born</li>
                <li>Anthony Michael Bourdain</li>
                <li>June 25, 1956</li>
                <li>New York City, New York, U.S</li>
                <li class="title">Education</li>
                <li>Vassar College</li>
                <li>The Culinary Institute of America</li>
                <li class="title">Spouse(s)</li>
                <li>Nancy Putkoski (1980s–2000s)</li>
                <li class="title">Cooking Style</li>
                <li>French</li>
                <li class="title">Televison Shows</li>
                <li>A Cook's Tour</li>
                <li>Anthony Bourdain: No Reservations</li>
                <li>The Layover</li>
                <li>Anthony Bourdain: Parts Unknown</li>
              </ul>
            </div>
          </div>
        </div>
        <div class="row" id="bottom">
          
          <div class="col-md-12">   
          <h2>"Without experimentation, a willingness to ask questions and try new things, we shall surely become static, repetitive, and moribund.”</h2>
            </div>
          
        </div>
        <p>Learn more about Anthony Bourdain on his<a href="https://en.wikipedia.org/wiki/Anthony_Bourdain" style="color:blue;" target="_blank"> Wikipedia</a> page.
          </p>
          <p>Designed and coded by <a href="http://bjswing.rocks/" style="color:rgba(0, 0, 0, 0.6);font-weight:bold" target="_blank">BJ Swing.
          </p>
      </div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                body {
  background-color: grey;
}

.container {
  margin: auto;
  margin-top: 10px;
}

.header-image {
  position: absolute;
  margin-bottom: 20px;
  width: 100%;
}

h1 span {
  left: 0px;
}

h1 {
  position: absolute;
  top: 75px;
  width: 52%;
  font-size: 300%;
  font-family: 'Ubuntu', sans-serif;
  font-weight: bold;
  line-height: 70%;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-bottom-style: solid;
  border-color: yellow;
  padding-top: 15px;
}

.spacer {
  padding: 0 0 0 8px;
}

.sub-spacer {
  padding: 0 0 0 145px;
}

.sub-text {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 50%;
  font-style: italic;
}

img {
  width: 100%;
  height: auto;
}

#source {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 12px;
  font-style: italic;
  color: white;
  float: right;
  padding-right: 15px;
}

#cnn {
  color: blue;
}

#quotes{
  margin-top: 17px
}

#bottom {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-bottom-style: solid;
  border-color: yellow;
  padding-top: 15px;
  margin-top: 15px;
}

h2 {
  font-family: Ubuntu, sans-serif;
  font-size: 24px;
  color: yellow;
  text-align: center;
  font-weight: 300;
  font-style: italic;
  color: white;
  padding: 0px 175px 0px 175px;
  margin-bottom: 20px;
  
}

#left-knife {
  width: 90px;
  float: right;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
  padding-left: 10px;
}

#about-knife {
  width: 90px;
  float: right;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
  padding-left: 10px;
}

#bottom-left-knife {
  width: 85%;
  float: left;
  margin-top: 25px;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

#right-knife {
  width: 85%;
  margin-top: 25px;
  float: right;
}

.quotes {
  width: 100%;
  font-size: 200%;
  font-family: 'Ubuntu', sans-serif;
  font-weight: bold;
  line-height: 70%;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  margin-top: 57px;
  padding: 15px;
  border-bottom-style: solid;
  border-color: yellow;
}



li {
  font-family: Ubuntu, sans-serif;
  font-size: 14px;
  color: white;
  text-align: left;
  list-style-type: none;
  font-weight: 300;
  font-style: italic;
}

.title {
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  text-decoration: underline;
  padding-top: 8px;
  
}


ol li {
  font-family: Ubuntu, sans-serif;
  font-size: 20px;
  color: yellow;
  text-align: center;
  font-weight: 300;
  font-style: italic;
  padding-top: 30px;
  padding-right: 50px;
}

p {
  font-family: Ubuntu, sans-serif;
  font-size: 16px;
  color: white;
  text-align: center;
  list-style-type: none;
  font-weight: 300;
  font-style: italic;
  margin-top: 10px;
}

@media screen and (max-width: 1000px) {
    h1 {
       font-size: 200%;
      top: 50px;
    }
}

@media screen and (max-width: 600px) {
    h1 {
       font-size: 150%;.sub-spacer
    }
}

@media screen and (max-width: 600px) {
    .sub-spacer {
       padding: 0 0 0 100px;
    }
}

@media screen and (max-width: 1000px) {
    li,.title {
       text-align: center;
      padding-right: 50px;
    }
}

@media screen and (max-width: 1000px) {
    h2 {
      font-size: 150%;
       margin: auto;
      padding: 0px 50px 0px 50px;
    }
}

@media screen and (max-width: 1000px) {
    #about-knife {
      width: 90px;
    }
}
@media screen and (max-width: 480px) {
    h1 {
       font-size: 100%;
      top: 30px;
    }
  .sub-spacer {
       padding: 0 0 0 80px;
}
    .container {
        
        padding-right: 45px
}
  h2 {
      font-size: 100%;
    margin: auto;
      padding: 0px 2px 5px 2px;
}
              
            
!

JS

              
                
              
            
!
999px

Console