cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

              #map {
  height: 400px;
  width: 400px;
  &:focus {
    outline:dotted 2px blue;

.pan-button, .zoom-button {
    outline:dotted 2px blue;
              jQuery(document).ready(function () {
  var map;
  var centerPosition = new google.maps.LatLng(42.3314, -83.0458);

  var options = {
    zoom: 5,
    center: centerPosition,
    streetViewControl : false,
    mapTypeControl : false
  map = new google.maps.Map($('#map')[0], options);
  google.maps.event.addListenerOnce(map, 'idle', a11yMap);
  function a11yMap() {
    var $map = jQuery('#map');
    var $panLeft = $map.find('div[title="Pan left"]');
    var $panRight = $map.find('div[title="Pan right"]');
    var $panUp = $map.find('div[title="Pan up"]');
    var $panDown = $map.find('div[title="Pan down"]');
    var $zoomOut = $map.find('div[title="Zoom out"]');
    var $zoomIn = $map.find('div[title="Zoom in"]');
    $map.on('keydown',function(event) {
      if ($.isDownArrowKey(event)) {
        return false;
      } else if ($.isUpArrowKey(event)) {
        return false;
      } else if ($.isLeftArrowKey(event)) {
        return false;
      } else if ($.isRightArrowKey(event)) {
        return false;
    $('.pan-button, .zoom-button').a11yButton();

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................