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

              
                <div class="center-on-page">
  
  <h1>Select Property</h1>
  <div class="select">
    <select name="prop" id="prop">
      <option value="1">Please select a property address...</option>
      <option value="2">$9,841 - 1890 Parrish Avenue</option>
      <option value="3">$12,964 - 4466 Rocky Road</option>
      <option value="4">$9,146 - 158 Victoria Court</option>
      <option value="5">$4,578 - 2623 Frederick Street</option>
    </select>
  </div>
  
</div>
              
            
!

CSS

              
                $bg: #F9FAFB
$white: #FFF
$black: #444
$blue: #6dc3f5
$drk-blue: #4a9ac8
$drk-grey: #cccccc
$grey: #dddddd

body
  color: $black
  background: $bg
  font-family: 'Open Sans', Helvetica, Arial, Sans-serif

.center-on-page
  position: absolute
  top: 20%
  left: 50%
  transform: translate(-50%,-50%)

h1
  text-align: center

/* Reset Select */
select
  -moz-appearance: none
  -ms-appearance: none
  appearance: none
  outline: 0
  box-shadow: none
  border: 0 !important
  background: $white
  background-image: none

/* Custom Select */
.select
  position: relative
  display: block
  width: 20em
  height: 3em
  line-height: 3
  background: $white
  overflow: hidden
  border-radius: .25em
  box-shadow: 0 0 12px 0 rgba(0,0,0,0.1)

select
  width: 100%
  height: 100%
  margin: 0
  position: absolute
  top: 0
  padding: 0 0 0 .5em
  color: $black
  cursor: pointer
  
select::-ms-expand
  display: none
  
/* Arrow */
.select::after
  content: '\25BC'
  position: absolute
  top: 0
  right: 0
  bottom: 0
  padding: 0 1rem
  color: $grey
  background: $white
  pointer-events: none

/* Transition */
.select:hover::after 
  color: $drk-grey

.select::after
  -webkit-transition: .25s all ease
  -o-transition: .25s all ease
  transition: .25s all ease
              
            
!

JS

              
                
              
            
!
999px

Console