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>
<head>
  </head>
  
<body>
  <div class="container">
   <div class="well">
   <table>
      <tr><td width="25%">
  
    <h2>Iain M. Banks</h2>
  <h3>Science fiction author</h3>
    <div class="well-sm pic">
        <img src="https://upload.wikimedia.org/wikipedia/en/6/65/ThePlayerOfGames.jpg" alt="Image"><br>
      <em>The third novel in Banks' acclaimed</em> Culture <em> series, featuring  a bored player of games who travels to a distant and power-hungry empire that revolves around a complicated and elaborate game.</em>
        </div></td>
        <td width="75%">
  <div class ="info">
    <h4 style="text-align: center">Some neat facts about  his life:</h4>
    <ul>
    <li>Born 1954 in Scotland</li>
         <li>Studied English, philosophy and psychology at the University of Sterling</li>
      <li>Worked various jobs that allowed him time to write</li>
      <li>Worked at IBM, British Stell Corporation, and a London based law firm</li>
      <li>Knew he wanted to write at age 11.</li>
      <li>Began writing science fiction after being introduced to it</li>
      <li>Lack of initial success in science fiction led him to write mainstream fiction</li>
      <li>He published his first novel, The Wasp Factory, in 1984</li>
      <li>He would write two more mainstream fiction novels</li>
      <li>He returned to write science fiction, publishing his first science fiction novel in 1987</li>
      <li>This was <em>Consider Phlebas</em>, the first of his <em>Culture</em> series of science fiction novels</li>
      <li>While he continued to write a few mainstream fiction novels, his <em>Culture</em> series won the most acclaim</li>
      <li>Banks wrote a total of 9 novels in the <em>Culture</em> series</li>
      <li>The series focuses on a post-scarcity anarchist utopian society guided by sentient hyper-intelligent machines</li>
      <li>The series is unique among science fiction in depicting an advanced and capable civilization that is not warfaring</li>
      <li>The books focus on characters who seek challenges beyond the abundance of their society</li>
      <li>The last <em>Culture</em> novel, <em>The Hydrogen Sonata</em>, was published in 2012</li>
      <li>Received numerous literary awards during his lifetime</li>
      <li>Died June 9th, 2013</li>
      <li>The asteroid 5099 Iainbanks was named in his memory</li>
      <li>Elon Musk named two of his company's drone ships after ships from his novel, <em>The Player of Games</em>; these are the <em>Just Read the Instructions</em> and <em>Of Course I Still Love You</em></li>
      <li>His last work, a collection of poetry, was published after his death</li>
    </ul></ul>
          <p class="link">You can learn more about Iain Banks and <a href="https://en.wikipedia.org/wiki/The_Culture">The Culture</a> on <a href="https://en.wikipedia.org/wiki/Iain_Banks">Wikipedia</a>.</p>
     </div>
      </td>
      </tr>
    <tr>
      <td colspan="2"
          style="padding: 10px">
        <div class="quote">
        
          <p>The priests looked at the territory they had lost, and the fraction they had left, and thought it was all over for them. He looked at his relatively unscathed divisions, his fresh units, his crack squads, all positioned just where they should be, knives laid against and inside the body of an overextended, worn-out enemy, just ready to cut… and thought it was all over for the Empire.</p>
         
          <p class="cite">-The character "Zakalwe" from  the third novel in Banks' <em>Culture</em> series, <em>The Use of Weapons</em>.
          </div>
    </td>
    </tr>
    </table>
  </div>
  </div>
</body>

</html>
              
            
!

CSS

              
                $black: #000000;
$darker: #282624;
$lighter: #aaaeaf; 
$lightest:  #dde1e3;

body {
  background-color: $darker;
  margin-top: 15px;
}

.well {
  background: $lighter;
  margin-left: 80px;
  margin-right: 80px;
  font-size:  larger;
}
.pic {
  margin-left: 0px;
  margin-right: 0px;
  background:  $lightest;
}
.info {
  width: 100%;
  vertical-align: center;
}
.quote {
  text-align: center;
  font-family: Monospace;
  font-style: italic;
  margin-left: 25%;
  margin-right: 25%;
  border-style: double;
  border-color: $darker;
}
.cite {
  font-style: normal;
  text-align: left;
}
.link {
  text-align: right;
  font-size: larger;
}
              
            
!

JS

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

Console