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.


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.


                <div class="speech-bubble">
  <div id="bubble-title">
    AU - Custom Styling: Fixed Width Adjustment
  <div id="bubble-description">
    This example of the AddressFinder widget has the manual styling feature turned on. This enables the styling to be set by the customer rather than using the default style. When you make a search, you will notice the font and colour has been changed to match the style of the page.
<form id="form-box" method="get">
  <div id="form-title">Shipping Address</div>
  <div class="form-header">Address Line 1</div>
  <input type="search" class="form-input" id="addrs_1" placeholder="Search address here..."></input>
  <div class="form-header">Address Line 2</div>
  <input type="text" class="form-input" id="addrs_2"></input>
  <div class="form-header">Suburb</div>
  <input type="text" class="form-input" id="suburb"></input>
  <div class="form-header">State</div>
  <input class="form-input" id="state"></input>
  <div class="form-header">Postcode</div>
  <input class="form-input" id="postcode"></input>

  <input class="btn" type="submit" name="next" value="NEXT">


                @import url('');
@import url('');

html, body {
  padding: 1em 1.5em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  width: 650px;
  color: #6d6d6d;

.speech-bubble {
  position: relative;
  padding: 1.5em;
  border-radius: 10px;
  box-sizing: border-box;
  background: #eaf5fa;
  box-shadow: 0px 2px 15px 0 rgba(0, 0, 0, 0.4);
  margin-bottom: 40px

.speech-bubble::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  bottom: -2em;
  left: 42.5%;
  box-sizing: border-box;
  border: 1em solid black;
  border-color: transparent transparent #eaf5fa #eaf5fa;
  transform-origin: 0 0;
  transform: rotate(-45deg);
  box-shadow: -4px 4px 5px 0 rgba(0, 0, 0, 0.2);;
  z-index: 0;

#bubble-title {
  font-size: 1.3em;
  margin-bottom: 8px;

form {
  font-family: 'Roboto Mono', Arial, Helvetica, sans-serif;

#form-box {
  height: content;
  padding: 2em 3.5em;
  border-top: 50px solid #4286f4;
  border-left: 2px solid #4286f4;
  border-right: 2px solid #4286f4;
  border-bottom: 2px solid #4286f4;

#form-title {
  font-size: 1.6em;
  padding-bottom: 6px;
  margin-bottom: 25px;
  border-bottom: 1.5px solid #E8E8E8;

.form-header {
  font-size: 16px;
  margin-bottom: 2px;

.form-input {
  width: 70%;
  height: 30px;
  font-size: 16px;
  padding-left: 6px;

.form-input:not(:last-child) {
  margin-bottom: 15px;

input[type=submit] {
  display: block;
  -webkit-appearance: button;
  font-size: 15px;
  width: 135px;
  height: 36px;
  margin-left: 254px;
  background-color: #4286f4;
  color: #FFFFFF;
  border: none;
  border-radius: 3px;

/* Forces .form-input styles onto search type */
input[type=search] {
  -webkit-appearance: textfield;
  box-sizing: content-box;


ul.af_list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: solid 1px #999;
    background: #fff;
    font-size: 13px;
    z-index: 1001;
  /* edit the line below to create a fixed width results drop down box. */
    width: 388px;
    /* Change the widget font style and colour */
  font-family: 'Roboto Mono', Arial, Helvetica, sans-serif;
  color: #4286f4;

ul.af_list li.af_item {
    cursor: pointer;
    padding: 5px 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-bottom: 1px solid #DBDBDB;

ul.af_list li.af_hover {
  background-color: #4286f4;
  color: white;

ul.af_list li.af_empty {
    padding: 5px 5px;
    border-bottom: 1px solid #DBDBDB;


                (function() {
    var widget, initAddressFinder = function() {
        widget = new AddressFinder.Widget(
            'AU', {
                "manual_style": true
        widget.on('result:select', function(fullAddress, metaData) {
            // You will need to update these ids to match those in your form
            document.getElementById('addrs_1').value = metaData.address_line_1;
            document.getElementById('addrs_2').value = metaData.address_line_2;
            document.getElementById('suburb').value = metaData.locality_name;
            document.getElementById('state').value = metaData.state_territory;
            document.getElementById('postcode').value = metaData.postcode;


    function downloadAddressFinder() {
        var script = document.createElement('script');
        script.src = '';
        script.async = true;
        script.onload = initAddressFinder;

    document.addEventListener('DOMContentLoaded', downloadAddressFinder);