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

              
                <head>
    <meta charset="utf-8">
	<title>Just Some Practice</title>
	<link rel="stylesheet" href="css/normalize.css">
	<!-- Google Fonts Goes Here -->
	<link rel="stylesheet" href="css/style.css">
  </head>
  <body>
    <div class="container">
	  <header>
	    <h1>Just A Little Practice</h1>
		<nav class="nav">
		  <ul>
		    <li><a href="index.html">Home</a></li>
			<li><a href="about.html">About</a></li>
			<li><a href="contact.html">Contact</a></li>
		  </ul>
		</nav>
	  </header>
	  <div class="main-content">
	    <h3>Just Some Text For Fun</h3>
	    <p>
		  Nondum autem explanatum satis, erat, quid maxime natura vellet. Quod non faceret, si in voluptate summum bonum poneret. Quae cum dixisset, finem ille. Summum ením bonum exposuit vacuitatem doloris; Quamquam non negatis nos intellegere quid sit voluptas, sed quid ille dicat. Tertium autem omnibus aut maximis rebus iis, quae secundum naturam sint, fruentem vivere. Sin tantum modo ad indicia veteris memoriae cognoscenda, curiosorum. Nonne videmus quanta perturbatio rerum omnium consequatur, quanta confusio? Quasi vero, inquit, perpetua oratio rhetorum solum, non etiam philosophorum sit. Quid ait Aristoteles reliquique Platonis alumni? Quarum ambarum rerum cum medicinam pollicetur, luxuriae licentiam pollicetur. 
		</p>
		<p>
		  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Illa sunt similia: hebes acies est cuipiam oculorum, corpore alius senescit; Claudii libidini, qui tum erat summo ne imperio, dederetur. Duo Reges: constructio interrete. Atqui pugnantibus et contrariis studiis consiliisque semper utens nihil quieti videre, nihil tranquilli potest. Quid enim de amicitia statueris utilitatis causa expetenda vides. Sin dicit obscurari quaedam nec apparere, quia valde parva sint, nos quoque concedimus; Elicerem ex te cogeremque, ut responderes, nisi vererer ne Herculem ipsum ea, quae pro salute gentium summo labore gessisset, voluptatis causa gessisse diceres. Ita enim se Athenis collocavit, ut sit paene unus ex Atticis, ut id etiam cognomen videatur habiturus. Bonum incolumis acies: misera caecitas. Quam tu ponis in verbis, ego positam in re putabam. Verba tu fingas et ea dicas, quae non sentias? Qui autem esse poteris, nisi te amor ipse ceperit? At ille pellit, qui permulcet sensum voluptate. Omnibus enim artibus volumus attributam esse eam, quae communis appellatur prudentia, quam omnes, qui cuique artificio praesunt, debent habere. 
		<p>
	  </div>
	  <footer>
	    <p>The Just Practice Company &copy;2014<p>
	  </footer>
	</div>
  </body>
</html>​
              
            
!

CSS

              
                html {
  height: 100%
}

/***********************
Setting the box rule
************************/

*, *:before, *:after {
  -webkit-box-sizing: border-box; 
  -moz-box-sizing: border-box; 
  box-sizing: border-box;
}

/*********************
Styling the body
*********************/

body {
  background: black;
  height: 100%;
  line-height: 2em;
}

/*******************
Centering the page
********************/

.container {
	height: 100%;
  max-width: 960px;
  margin: auto;
}

/******************
Styling the header
*******************/

header {
  background: lightgrey;
}

/*********************
styling the h1
*********************/

h1 {
  margin: 0;
  padding: 25px;
  text-align: center;
}

/****************
Styling the nav
*****************/

.nav {
  background: grey;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.nav li {
  display: inline;
}

.nav ul {
  margin-bottom: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 20px;
  text-decoration: none;
}

/*******************************
Styling the nav pseudo elements
********************************/

.nav a:link {
  color: blue;
}

.nav a:visited {
  color: purple;
}

.nav a:hover {
  color: white;
}

.nav a:active {
  color: coral;
}

/****************
Styling the h3
*****************/

h3 {
  margin: 0;
  text-align: center;
}

/***********************
Styling the main content
************************/

.main-content {
  background: lightblue;
  padding: 15px;
}

/*************************
Practising pseudo classes
**************************/

.main-content p:nth-child(2) {
  color: orange;
  font-weight: bold;
}

.main-content p:nth-child(3) {
  color: darkblue;
}

/*****************
Styling the footer
******************/

footer {
  background: lightgrey;
  padding: 25px;
}

footer p:first-child {
  font-weight: bold;
  font-size: 2em;
  margin: 0; 
  text-align: center;
}










































​
              
            
!

JS

              
                
              
            
!
999px

Console