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

              
                

<html>
  
  <style>
   h1 {
        color: white;
 
    }
    
    body {
        color: #d3d3d3;
 
   {
 
   }
}
</style>

    <h1 style="text-align: center" class:"text-primary">Hunter S. Thompson</h1> 
 <body>
 
   
<div>
  <center>
    <p>
  <img vspace="40"” 
       
       
       src="https://s3.amazonaws.com/quietus_production/images/articles/5707/Hunter_S_Thompson_Pic1_1297867615.jpg"  width="796" height="559" align="middle" >
      
    </p>
  </img>
  
  

  
  <div style="width:74%; padding: 2em 2em 0 2em; background: linear-gradient(to right, #870000, #190a05); border:2px solid white;">
 <p align="left" style="color: white">
   Counterculture icon Hunter S. Thompson was an American journalist best known for writing 1971's 'Fear and Loathing in Las Vegas' and creating 'Gonzo journalism.' Hunter S. Thompson was born in Louisville, Kentucky, in 1937. He showed a knack for writing at a young age, and after high school began his career in journalism while serving in the United States Air Force. Following his military service, Thompson traveled the country to cover a wide array of topics for numerous magazines and developed an immersive, highly personal style of reporting that would become known as “Gonzo journalism.” He would employ the style in the 1972 book for which he is best known, Fear and Loathing in Las Vegas, which was an instant and lasting success. For the remainder of his life, Thompson’s hard-driving lifestyle—which included the steady use of illicit drugs and an ongoing love affair with firearms—and his relentlessly antiauthoritarian work made him a perpetual counterculture icon. However, his fondness for substances also contributed to several bouts of poor health, and in 2005 Thompson committed suicide at the age of 67.
   
   
  </p>
    <p align="left" style="color: white; padding: 0 7em 2em 0;">
    In her book Hunter: The Strange and Savage Life of Hunter S. Thompson, biographer E. Jean Carroll starts the first chapter with a detailed account of the excess of her subject. Here's what Carroll reports as a sample daily routine for the gonzo journalist.
      </p>
     
  </div>
  
  </center>
   </div>
 <div style="width:600px; margin:0 auto;">
  
  <ul style="list-style: none;">
    <li style="padding: 2em 7em 2em 0;">
       <i>Note that his day begins at 3pm.</i>
      </li>
  <li>
    <b>3:00pm</b>  - Rise
  </li>
    <li>
      <b>3:05</b>  - Chivas Regal with the morning papers, <a href="https://www.youtube.com/watch?v=TFsRPH9ZUX4">Dunhills </a>  
      </li>
 
 
 
  

   
  <li>
    <b>3:45</b>  - Cocaine
    </li>
  <li>
    <b>3:50</b>  - Another glass of Chivas, Dunhill
    </li>
  <li>
    <b>4:05</b>  - First cup of coffee, Dunhill
    </li>
  <li>
    <b>4:15</b>  - Cocaine
    </li>
  <li>
    <b>4:16</b>  - Orange juice, Dunhill
    </li>
  <li>
<b>4:30</b>  - Cocaine
    </li>
  <li>
<b>4:54</b>  - Cocaine
    </li>
  <li>
<b>5:05</b>  - Cocaine
    </li>
  <li>
<b>5:11</b>  - Coffee, Dunhills
    </li>
  <li>
<b>5:30</b>  - More ice in the Chivas
    </li>
   <figure>
    <img vspace="10"  src="http://www.cocktailpros.com/wp-content/uploads/2016/02/Chivas-Regal-12-Year-e1455475044979.jpg" style="display: inline;"> </img>
      
  
       <figcaption>Hunter frequently mentions Chivas Regal as one of his favorite liquors throughout his works.</figcaption>
</figure>
  
  <li>
<b>5:45</b>  - Cocaine, etc., etc.
    </li>
  <li>
<b>6:00</b>  - Grass to take the edge off the day
    </li>
  <li>
<b>7:05</b>  - Woody Creek Tavern for lunch...
   
       <ol>
         <li>
    Heineken 
         </li>
   
      <li>
       Two margaritas
         </li>
        <li>
      Coleslaw 
           </li>
          <li>
      A taco salad
             </li>
            <li>
      A double order of fried onion rings
               </li>
              <li>
      Carrot cake
                 </li>
                <li>
      Ice cream
                   </li>
                  <li>
      A bean fritter
                     </li>
                    <li>
      Dunhills
                       </li>
                      <li>
      Another Heineken
                         </li>
                        <li>
      Cocaine
                           </li>
                          <li>
      For the ride home, a snow cone (a glass of shredded ice over which is poured three or four jig­gers of Chivas.)
      </li>
    </ol>
   
    </li>
  <li>
    <b>9:00</b>  - <b  style="font-size: 22px; color: red"> Starts snorting cocaine seriously</b>
    </li>
  <li>
<b>10:00</b>  - Drops acid
    </li>
  <li>
<b>11:00</b>  - Chartreuse, cocaine, grass
    </li>
  <li>
<b>11:30</b>  - Cocaine, etc, etc.
    </li>
  <li>
<b>12:00</b>  - Midnight, Hunter S. Thompson is ready to write
    </li>
  <li>
<b>12:05-6:00am</b> - Chartreuse, cocaine, grass, Chivas, coffee, Heineken, clove cigarettes, grapefruit, Dunhills, orange juice, gin, continuous pornographic movies.
    </li>
  <li>
<b>6:00</b>  - The hot tub-champagne, Dove Bars, fettuccine Alfredo
    </li>
  <li>
<b>8:00</b>  - Halcyon
    </li>
  <li>
    <b>8:20</b>  - Sleep
    </li>
</ul>
 

  </div>

<blockquote>
            <p class="text-center" align="left" style="color: white; padding: 2em 2em 0em 0;">"Anything that gets your blood racing is probably worth doing."</p>
            <footer class="text-center"><cite> - Hunter S. Thompson</cite></footer>
  
  <div vspace="40">
  </div>
  
<footer vspace="40" class="text-center">
    <hr style="color: white;">
    <p style="padding-top:20px; vspace="40">Written and coded by <a href="https://www.freecodecamp.com/tyburton2" target="_blank">Tyler Burton</a></p>
  </footer>  
 </body>
                                                                                                                                 <img class="bg" src="http://americanshortfiction.org/new/wp-content/uploads/2016/05/Nevada-Desert_narrow.jpg"  width="1000" height="269" >
</html>
              
            
!

CSS

              
                body {
  margin-top: 60px;
    background: linear-gradient(to top, #000000, #434343);

}

h1
{
  Font-family: futura;
  Font-weight: bold;
  Font-size: x-large;
  Font-color: white;
  
}


.center{
    width:200px;
    margin:0 auto;
    text-align:left;
}

.bg
{
  width: 100%;
  z-index: 0;
}
              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "80px";
              
            
!
999px

Console