cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores enim tenetur quae praesentium voluptatibus reprehenderit reiciendis dolorum perspiciatis corporis molestias distinctio nobis quasi cum id facere. Rerum tempora dignissimos aspernatur.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit optio id dolor voluptatibus cupiditate omnis pariatur rem laborum vitae est perspiciatis accusamus ipsam autem magni facere a ratione ullam illum.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem natus id voluptatibus ex exercitationem libero minima voluptate repellendus illo odit et hic iure laudantium qui dolorem doloribus nobis dolore inventore.</p>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans);
body{
  background-color: #3498db;
  color:white;
  font-family: 'Open Sans', sans-serif;
  padding:50px 30px;
  font-size: 18px;
  line-height: 1.4;
}


            
          
!
            
              //FlowTypeJS 
//Source: https://github.com/simplefocus/FlowType.JS
/*
* If you create a derivative, please leave this text intact:
*
* FlowType.JS 1.0
* Copyright (c) 2013, Simple Focus https://simplefocus.com/
*
* FlowType.JS by Simple Focus (https://simplefocus.com/)
* is licensed under the MIT License. Read a copy of the
* license in the LICENSE.txt file or at
* http://choosealicense.com/licenses/mit
*
* Thanks to Giovanni Difeterici (http://www.gdifeterici.com/)
*/

(function($) {
   $.fn.flowtype = function(options) {

// Establish default settings/variables
// ====================================
      var settings = $.extend({
         maximum   : 9999,
         minimum   : 1,
         maxFont   : 9999,
         minFont   : 1,
         fontRatio : 35,
         lineRatio : 1.45
      }, options),

// Do the magic math
// =================
      changes = function(el) {
         var $el = $(el),
            elw = $el.width(),
            width = elw > settings.maximum ? settings.maximum : elw < settings.minimum ? settings.minimum : elw,
            fontBase = width / settings.fontRatio,
            fontSize = fontBase > settings.maxFont ? settings.maxFont : fontBase < settings.minFont ? settings.minFont : fontBase;

         $el.css({
            'font-size'   : fontSize + 'px',
            'line-height' : fontSize * settings.lineRatio + 'px'
         });
      };

// Make the magic visible
// ======================
      return this.each(function() {
         
      // Context for resize callback
         var that = this;
         
      // Set changes on load
         changes(this);
         
      // Make changes upon resize
         $(window).resize(function(){changes(that);});
      });
   };
}(jQuery));
//call the plugin
$('body').flowtype({
 minFont : 16,
 maxFont : 28,
 fontRatio : 30
});
            
          
!
999px
Loading ..................

Console