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.


<script src=""></script>  
<body id="main">
  <h1>Professor. Stephen William Hawking</h1>
  <h2>'However difficult life may seem, there is always something you can do, and succeed at. It matters that you don’t just give up.'</h2>

<div id="img-div">
  <img id="image" src="" alt="Stephen Hawkins">
  <p id="img-caption">Professor. Stephen William Hawking (1942 - 2018)</p>
<div id="tribute-info">
  <p> Theoretical physicist Stephen Hawking (January 8, 1942 to March 14, 2018) was a British scientist, professor and author who performed groundbreaking work in physics and cosmology, and whose books 
  helped to make science accessible to everyone, and was widley regarded as one of the worlds most brillient minds.</p>
<p>At age 21, while studying cosmology at the University of Cambridge, he was diagnosed with amyotrophic lateral sclerosis (ALS). However, Professor Hawkings ALS never stopped or prevented him from achieveing great things not only in the world of thoeretical physics, but also in his personal life. During his life, Professor Hawking broke new ground on the basic laws which govern the universe, including the revelation that black holes have a temperature and produce radiation, now known as Hawking radiation. At the same time, he also sought to explain many of these complex scientific ideas to a wider audience through popular books, most notably his bestseller A Brief History of Time.
<ul id="bullet-list">
  <li> He was born on the 300th anniversary of the death of the famous scientist Galileo.</li>
  <li> He has been married twice and has three children.</li>
  <li> Stephen has been on several TV shows including The Simpsons and the Big Bang Theory.</li>
  <li> The book A Brief History of Time only has one equation, Einstein's famous E = mc2.</li>
  <li> Hawking has co-written several children's books with his daughter Lucy including George's Cosmic Treasure Hunt and George and the Big Bang.</li>
  <li> He received the Presidential Medal of Freedom in 2009.</li>
  <li> He hopes to travel to space one day and has trained with NASA on their zero gravity aircraft.</li>
  <p>For further information<a id="tribute-link" href="" target="_blank"> click here</a></p>


                #main {
  font-family: Karla;
  font-size: 1.2em;
  background: #BEBEBE;
p, ul {
  font-family: Lato;
  margin-left: 150px;
  margin-right: 150px;
  padding: 5px;
  line-height: 1.7em;
  text-align: justify;
h1 {
  font-size: 56px;
h1, h2 {
  text-align: center;
#image {
  max-width: 100%;
  display: block;
  height: auto;
  margin: auto;
  border-radius: 5px;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.25), 0 6px 6px rgba(0,0,0,0.23);
#img-caption {
  text-align: center;
  margin-bottom: 30px;
#bullet-list {
  padding-left: 50px;