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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

HTML

              
                <meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=yes" />
<style>
  .injected-text{
    text-align:center;
    font-family: Monospace;
    color: #3986d3;
  }
   .vice-text{
    font-family: Monospace;
    font-style: italic;
    text-align:center;
  }
  .grey-box{
    background-color:#e5e5e5;
    border-radius: 5px;
    margin-left: 40px;
    margin-right: 40px;
    padding: 30px;
  }
  .white-box{
    background-color:#ffffff;
    text-align:center;
    margin: auto;
    width: 80%;
    margin-bottom: 50px;
    font-family: Monospace;
    padding: 5px;
  }
  .text-box{
    font-family: Monospace;
    margin-left:220px;
    margin-right:220px;
    width:60%;
  }
  .under-box{
    font-family: Monospace;
    margin-left: 40px;
    margin-right: 40px;
    padding:10px;
  }
  .main-image{
    display: block;
    margin-top: 10px;
    margin:auto;
    width: 100%;
  }
</style>
<div class="container-fluid">
	<div class="row">
		<div class="grey-box">
			<div class="col-xs-12">
  	  			<h1 class="injected-text">Rooney Mara</h1>
  	  			<h3 class="vice-text">The Girl with the Dragon Tattoo</h3>
  	  			<div class="white-box"><img src="http://img21.mtime.cn/pi/2012/02/16/165647.35214207_1000X1000.jpg" class="main-image">Rooney Mara stars in a film 'a ghost story'</div>
  	  		</div>
		
  	  		<div class="text-box">
    				<h3 font-style="bold"><p>Here's a time line of Rooney Mara's Acting career:</p></h3>
    				<li><strong>2005–09:</strong> Career beginnings</li>
    				<li><strong>2010–2016:</strong> Breakthrough and critical success</li>
    				<li><strong>2017–present:</strong> Continued film roles</li>
   		 			<p></p>
   		 			<p><font size="4">Plot: The spirit of a deceased man (Casey Affleck) haunts the home he lived-in with his beloved wife (Rooney Mara). Review: One of the Sundance Film Festival’s most unique categories is the “Next” section. Meant to spotlight daring narratives, it usually focuses on emerging filmmakers, which is why it was a surprise to see David Lowery’s latest, A Ghost... Read More »</font></p>

    				<h6><font color="grey" size="4">- Chris Bumbray</font></h6>
 
     	   			<h3 font-style="bold"><p>If you have time, you could read more about this on her <a href="https://en.wikipedia.org/wiki/Rooney_Mara" target="_blank">Wikipedia entry</a>.</p></h3>
  			</div>
		</div>
	</div>
</div>

<div class="under-box">
  <hr>
  <p align="center">Written and coded by <a href="https://www.freecodecamp.com/jincute" target="_blank">Jinfang Luo</a>. </p>
</div>
              
            
!

CSS

              
                body {
  background-color: white;
  margin-top: 60px;
}
              
            
!

JS

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

Console