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

              
                <html lang="en-US">
<head></head>

<body>

  <figure>
    <div class="outerBevel">
      <div class="flatSurface">
        <div class="innerBevel">
          <img src="http://www.johnsdev.com/civil-war/images/map_trans_edge.png" alt="Map of the U.S. during the Civil War" title="The U.S. during the Civil War" width="382" height="326" class="map">
        </div>
      </div>
    </div>
  </figure>

</body>

</html>
              
            
!

CSS

              
                /*
	IMAGE CREDITS

	Map from: http://www.davidrumsey.com/maps3700.html
	Digital images and descriptive data © 2000 by Cartography Associates.
	'Images may be reproduced or transmitted, but not for commercial use. For commercial use or commercial republication, contact carto@luna-img.com. This work is licensed under a Creative Commons License. By downloading any images from this site, you agree to the terms of that license.'
*/

* {
	padding:					0;
	margin:						0;
	box-sizing:				border-box;
	}

figure {
	width:						545px;
	height:						500px;
	margin:						1em auto;
	}

.outerBevel { /* of frame */
	box-shadow:				4px 6px 12px 0 black;
	border-width:			5px;
	border-style:			solid;
	border-color:			rgb(109, 84, 58) rgb(24, 19, 13) rgb(24, 19, 13) rgb(109, 84, 58);
	}

.flatSurface { /* of frame */
	border:						12px solid rgb(65, 40, 16);
	}

.innerBevel { /* of frame */
	border-width:			5px;
	border-style:			solid;
	border-color:			rgb(24, 19, 13)	rgb(109, 84, 58) rgb(109, 84, 58) rgb(24, 19, 13);
	}

.map { /* including mat and gold beveled edge of mat */
	display:					block;
	clear:						both;
	height:						100%;
	width:						100%;
	padding:					7.5% 7.5% 10% 7.5%; /* Mat width */
	background-color:	rgb(255,249,224); 	/* Mat color */
	border-width:			3px;	/* Gold edge of mat */
	border-style:			solid;
	border-color:			rgb(207, 166, 0) rgb(207, 166, 0) rgb(145, 110, 0) rgb(145, 110, 0);
	}

              
            
!

JS

              
                
              
            
!
999px

Console