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 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

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

              
                <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"/>
</label>
              
            
!

CSS

              
                @import bourbon

@import url(https://fonts.googleapis.com/css?family=Varela+Round)
html 
	box-sizing: border-box

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

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

h2 
	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

.filupp 
	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)

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

.filupp:after
	content: "\279c"
	+transform(rotate(-90deg))
	position: absolute
	top: .65em 
	right: .45em
	font-size: 2em
	color: $trimColor
	line-height: 0

.filupp-file-name
	width: 75%
	+ellipsis(100%)

              
            
!

JS

              
                $(document).ready(function() {

  // get the name of uploaded file
	$('input[type="file"]').change(function(){
		var value = $("input[type='file']").val();
		$('.js-value').text(value);
	});

});

              
            
!
999px

Console