Pen Settings



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


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


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.


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.


                <label for="custom-file-upload" class="filupp">
  <span class="filupp-file-name js-value">Browse Files</span>
  <input type="file" name="attachment-file" value="1" id="custom-file-upload"/>


                @import bourbon

@import url(
	box-sizing: border-box

*, *:before, *:after 
	box-sizing: inherit

	background: #181818
	overflow-y: scroll
	position: relative
	font: 1em/1.6 "Varela Round", Arial, sans-serif
	color: #999
	font-weight: 400
	max-width: 25em 
	padding: 1em
	margin: 10% auto

	font-weight: 400

// Filupp styles

$bgColor: #242424
$trimColor: #dd4040
$textColor: #fff 

.filupp > input[type="file"]
	position: absolute
	width: 1px
	height: 1px
	padding: 0
	margin: -1px
	overflow: hidden
	clip: rect(0,0,0,0)
	border: 0

	position: relative
	background: $bgColor
	display: block
	padding: 1em
	font-size: 1em
	width: 100%
	height: 3.5em
	color: $textColor
	cursor: pointer
	box-shadow: 0 1px 3px darken($bgColor,10)

	content: ""
	position: absolute
	top: 1.5em
	right: .75em
	width: 2em
	height: 1.25em
	border: 3px solid $trimColor
	border-top: 0
	text-align: center

	content: "\279c"
	position: absolute
	top: .65em 
	right: .45em
	font-size: 2em
	color: $trimColor
	line-height: 0

	width: 75%



                $(document).ready(function() {

  // get the name of uploaded file
		var value = $("input[type='file']").val();