Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
	  <meta charset="utf-8">
	  <title>The Road Warrior</title>
			<link href='https://fonts.googleapis.com/css?family=Lora|Changa+One' rel='stylesheet' type='text/css'>
	  <link rel="stylesheet" href="css/normalize.css">
	  <link rel="stylesheet" href="css/style.css">
	  <meta name="viewport" content="width=device-width">
	  <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
	  <script src="js/jquery.fitvids.js"></script>
	</head>
	<body>
	  <div class="wrapper">
	    <header>
				<div class="space">
	      <h1>Mad Max 2</h1>
				<h2>The Road Warrior</h2>
				</div>
		  <nav>
		    <ul>
		      <li><a href="index.html" class="selected">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">
		  <h1 id="titlep">One Great Action Movie</h1>
		  <img class="floatLeft style" src="https://virtualswede.files.wordpress.com/2011/08/roadwarrior1.jpg" alt="">
		  <p>
		    Lorem ipsum dolor sit amet, consectetur adipiscing elit. De quibus etsi a Chrysippo maxime est elaboratum, tamen a Zenone minus multo quam ab antiquis; Pauca mutat vel plura sane; Ergo omni animali illud, quod appetiti positum est in eo, quod naturae est accommodatum. Virtutis, magnitudinis animi, patientiae, fortitudinis fomentis dolor mitigari solet. Satisne ergo pudori consulat, si quis sine teste libidini pareat? Duo Reges: constructio interrete. Ergo infelix una molestia, fellx rursus, cum is ipse anulus in praecordiis piscis inventus est? Num igitur dubium est, quin, si in re ipsa nihil peccatur a superioribus, verbis illi commodius utantur? Id et fieri posse et saepe esse factum et ad voluptates percipiendas maxime pertinere. Vide ne ista sint Manliana vestra aut maiora etiam, si imperes quod facere non possim. Nec vero alia sunt quaerenda contra Carneadeam illam sententiam. Sin kakan malitiam dixisses, ad aliud nos unum certum vitium consuetudo Latina traduceret.
		  </p>
		  <img class="floatRight style" src="https://24.media.tumblr.com/1be755ac7ae5a6c7227d6b1abd2fbd0a/tumblr_min0f7MEvu1s462imo1_1280.jpg" alt="">
		  <p>
		    Lorem ipsum dolor sit amet, consectetur adipiscing elit. De quibus etsi a Chrysippo maxime est elaboratum, tamen a Zenone minus multo quam ab antiquis; Pauca mutat vel plura sane; Ergo omni animali illud, quod appetiti positum est in eo, quod naturae est accommodatum. Virtutis, magnitudinis animi, patientiae, fortitudinis fomentis dolor mitigari solet. Satisne ergo pudori consulat, si quis sine teste libidini pareat? Duo Reges: constructio interrete. Ergo infelix una molestia, fellx rursus, cum is ipse anulus in praecordiis piscis inventus est? Num igitur dubium est, quin, si in re ipsa nihil peccatur a superioribus, verbis illi commodius utantur? Id et fieri posse et saepe esse factum et ad voluptates percipiendas maxime pertinere. Vide ne ista sint Manliana vestra aut maiora etiam, si imperes quod facere non possim. Nec vero alia sunt quaerenda contra Carneadeam illam sententiam. Sin kakan malitiam dixisses, ad aliud nos unum certum vitium consuetudo Latina traduceret.
		  </p>
		  <script>
            $(document).ready(function(){
              // Target your .container, .wrapper, .post, etc.
              $(".wrapper").fitVids();
            });
         </script>        
		  <iframe width="560" height="315" src="https://www.youtube.com/embed/Gdv5EtZQ6jg"  allowfullscreen></iframe>	    
		</div>
		<footer class="center">
		  <p>80's Movie Reviews &copy; 2015</p>
		</footer>
	  </div>
	</body>
  </html>
              
            
!

CSS

              
                /*** Adding The Box Size Rule ***/

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

/*** Styling The Body Section ***/

body {
  background: #868686;
  font: normal 1.1em/1.5 sans-serif;
}

/*** Styling The Wrapper ***/

.wrapper {
  max-width: 60em;
  margin: 0 auto;
}

/*** Styling The Header ***/

header {
  background-image: url("https://s3.postimg.org/aw3slacbj/headerbackground.png");
}

/*** Adding Space Around The h1's ***/

.space {
  
	display: inline-block;
	max-width: 40em;
	text-align: center;
	position: relative;
	left:20em;
	height:125px;
}


#titlep{
	margin:0;
	padding: 2px;
	text-align: center;
}
.space h1{
	font-family: 'Changa One', sans-serif;
	font-weight: 100;
}
h2{
	margin-top: -25px;
	font-family: "lora", sans-serif;
}

/*** Text-align Center ***/

nav,
.center {
  text-align: center;
}

/*** Styling The Navigation ***/

nav {
  border-bottom: 2px solid #5F5F5F;
}

ul{
	list-style:none;
	margin-bottom:0;
	
}

nav li {
  display: inline-block;
	margin-right: 15px;
	border-radius: 5px;
	
}

nav li a {
  
  padding: 10px;
	width: 100px;
	height: 42px;
  text-decoration: none;
	color: white;
	display: block;
	text-align: center;
	border-radius: 5px;
	background-color: #AC6C6C;
	font-weight: 200px;
  font-size: 16px;
	transition-duration: .2s;
	border: 1px solid #7F5959;
	
}

/*** Styling The Navigation Pseudo Class ***/

 nav a:hover,.selected{
	 color:white;
	 border:1px solid black;
	 background-color: #7F5959;
	 box-shadow: 1px 2px 3px black;
	 transform: translateY(4px);
 }

/*** Styling The Main Content ***/

.main-content {
  background-image: url("https://s3.postimg.org/5h8upjowz/bodybackground.png");
  padding: .85em;
}

/*** Making The Images Responsive ***/

img {
  max-width: 100%;
}

/*** Floating The Images ***/
.floatLeft {
  float: left;
}

.floatRight {
  float: right;
}

/*** Adding Various Styles To The Images ***/

.style {
  -webkit-box-shadow: 6px 6px 5px 1px rgba(0,0,0,0.75);
  -moz-box-shadow: 6px 6px 5px 1px rgba(0,0,0,0.75);
  box-shadow: 6px 6px 5px 1px rgba(0,0,0,0.75);
  margin: 2.5%;
  width: 45%;
}

/*** Styling The Footer ***/

footer {
  background: #ECECEC;
}

footer p:first-child {
  font-weight: bold;
  font-size: 1.5em;
  margin: 0;
  padding: .55em;
}

















































              
            
!

JS

              
                /*global jQuery */
/*jshint browser:true */
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - https://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/

;(function( $ ){

  'use strict';

  $.fn.fitVids = function( options ) {
    var settings = {
      customSelector: null,
      ignore: null
    };

    if(!document.getElementById('fit-vids-style')) {
      // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
      var head = document.head || document.getElementsByTagName('head')[0];
      var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
      var div = document.createElement("div");
      div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
      head.appendChild(div.childNodes[1]);
    }

    if ( options ) {
      $.extend( settings, options );
    }

    return this.each(function(){
      var selectors = [
        'iframe[src*="player.vimeo.com"]',
        'iframe[src*="youtube.com"]',
        'iframe[src*="youtube-nocookie.com"]',
        'iframe[src*="kickstarter.com"][src*="video.html"]',
        'object',
        'embed'
      ];

      if (settings.customSelector) {
        selectors.push(settings.customSelector);
      }

      var ignoreList = '.fitvidsignore';

      if(settings.ignore) {
        ignoreList = ignoreList + ', ' + settings.ignore;
      }

      var $allVideos = $(this).find(selectors.join(','));
      $allVideos = $allVideos.not('object object'); // SwfObj conflict patch
      $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.

      $allVideos.each(function(count){
        var $this = $(this);
        if($this.parents(ignoreList).length > 0) {
          return; // Disable FitVids on this video.
        }
        if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
        if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
        {
          $this.attr('height', 9);
          $this.attr('width', 16);
        }
        var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
            width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
            aspectRatio = height / width;
        if(!$this.attr('id')){
          var videoID = 'fitvid' + count;
          $this.attr('id', videoID);
        }
        $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
        $this.removeAttr('height').removeAttr('width');
      });
    });
  };
// Works with either jQuery or Zepto
})( window.jQuery || window.Zepto );

              
            
!
999px

Console