123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<main id="main">
  <header>
    <h1 id="title" style="color:#ffffff"> Dr. Stephen Hawking </h1>
  </header>
  <h2 style="color:#ffffff"> "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" class="image">
    <figure id="img-div">
      <img src="https://ichef.bbci.co.uk/news/660/cpsprodpb/017C/production/_100408300_tv040987557.jpg" alt="Oxford Stephen Hawking" id="image">
      <figcaption id="img-caption"> <br> <i> Steven Hawking, photographed at Oxford University </i> </caption>
  </div>
  <article id="tribute-info">
    <h3> Overview </h3>
    Stephen William Hawking CH CBE FRS FRSA (8 January 1942 – 14 March 2018) was an English theoretical physicist, cosmologist, and author who was director of research at the Centre for Theoretical Cosmology at the University of Cambridge at the time of his
    death. He was the Lucasian Professor of Mathematics at the University of Cambridge between 1979 and 2009.
    <p>
      <h3> Works & Theory's </h3>
      His scientific works included a collaboration with Roger Penrose on gravitational singularity theorems in the framework of general relativity and the theoretical prediction that black holes emit radiation, often called Hawking radiation. Hawking was the
      first to set out a theory of cosmology explained by a union of the general theory of relativity and quantum mechanics. He was a vigorous supporter of the many-worlds interpretation of quantum mechanics.
      <p>
        <h3> Hawking's personal achievements </h3> Hawking achieved commercial success with several works of popular science in which he discusses his own theories and cosmology in general. His book A Brief History of Time appeared on the British Sunday Times
        best-seller list for a record-breaking 237 weeks. Hawking was a Fellow of the Royal Society (FRS), a lifetime member of the Pontifical Academy of Sciences, and a recipient of the Presidential Medal of Freedom, the highest civilian award in the
        United States. In 2002, Hawking was ranked number 25 in the BBC's poll of the 100 Greatest Britons.
        <p>
          <h3> Hawking's disability </h3> In 1963, Hawking was diagnosed with an early-onset slow-progressing form of motor neurone disease (MND; also known as amyotrophic lateral sclerosis "ALS" or Lou Gehrig's disease) that gradually paralysed him over the
          decades. Even after the loss of his speech, he was still able to communicate through a speech-generating device, initially through use of a hand-held switch, and eventually by using a single cheek muscle. He died on 14 March 2018 at the age
          of 76, after living with the disease for more than 50 years.
  </article>
  <footer>
    <p>
      People are still <a id="tribute-link" href="https://twitter.com/AndrewYang/status/1160319477516574728" target="_blank"> quoting Doctor Stephen Hawking </a> following his death
  </footer>
</main>
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");

h1 {
  font-size: 48px;
  text-align: center;
  background-color: #448d76;
  margin: 0% 0% -5% 0%;
  padding: 1% 0% 5% 0%;
}

h2 {
  font-size: 16px;
  text-align: center;
  font-style: italic;
  background-color: #448d76;
  padding: 0% 24.5% 2% 24.5%;
}

div.image {
  background-color: #d4f7ec;
  margin-top: -1.5%;
  text-align: center;
  padding: 1.5% 0% 1% 0%;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
}

article {
  font-family: "roboto", arial;
  font-size: 14px;
  padding: 2% 15% 2% 15%;
  line-height: 1.5;
  color: #341509;
}
a:link {
  color: lightblue;
}

a:visited {
  color: lightblue;
}

a:hover {
  color: black;
}

a:active {
  color: blue;
}

footer {
  font-size: 22px;
  text-align: center;
  background-color: #448d76;
  padding: 1% 0% 1% 0%;
  color: #ffffff;
  margin-top: 2%;
}
h3 {
  font-size: 20px;
  font-family: "roboto", arial;
  font-weight: 900;
  margin-bottom: 0%;
  color: #b84014;
}
* {
  margin: 0;
  padding: 0;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console