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

              
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
      <!--{GLOBAL_MESSAGES_aae3749ba9c2e308ffa9c240ac185959}-->
      <!--/{GLOBAL_MESSAGES_aae3749ba9c2e308ffa9c240ac185959}-->
      
      <script type="text/javascript" src="/js/sinaprinting/jquery.uploadfile.min.js"></script>
      <form id="uploader_form" class="scaffold-form" name="uploader_form" action="/catalog/product/view/id/210/" method="post" enctype="multipart/form-data">
        <div class="uploader_form">
          <input type="hidden" name="id" value="291">
          <input type="hidden" name="productid" value="210">
          <input type="hidden" name="sides" value="1">
          <input type="hidden" name="templatesize" value="77">
          <input type="hidden" name="product" value="18">
          <input type="hidden" id="oneSideOrTwoSides" name="oneSideOrTwoSides" value="1">
          <div class="fieldset">
            <ul style="list-style: none;">
              <li style="padding: 10px;">
                <div class="button-set">
                  <h4 class="legend">
                    Upload file						 - 1 side						
                  </h4>
                  <div class="ajax-upload-dragdrop upload-drag-and-drop-box">
                    <img src="https://res.cloudinary.com/dtutqsucw/image/upload/v1438955603/file-upload-01.png" alt="upload-file" />
                    </br>
                    
                    <p class="file-type-desc">( <font color="red">*</font>file extension allowed: <strong>.pdf )</p>
                 
                     <p class="drag-drop-text">
                        Drag &amp; Drop Files here Or 
                      </p>
                    <div class="browse-button" style="position: relative; overflow: hidden; cursor: default;">
                      Browse
                       <form method="POST" action="https://eprint4me.ca/uploader/view/ajaxUpload/" enctype="multipart/form-data" style="margin: 0px; padding: 0px;">
                         
                         </form></div></div>
                
                        
                         <div class="ajax-file-upload-statusbar" style="width:100%;"> 
                           <div id="ajax-file-upload-radiobutton1" class="ajax-file-upload-radiobutton" style="display: none;">
                             <input type="radio" name="frontOrBack1" value="front" checked=""> Page 1 &nbsp;
                             <input type="radio" name="frontOrBack1" value="back"> Page 2</div>
                             <img class="ajax-file-upload-preview" style="width: 100%; height: auto; display: none;"> 
                             <div class="ajax-file-upload-filename">1) RWACImage-1.pdf</div><div class="ajax-file-upload-progress" style="display: inline-block;">
                             <div class="ajax-file-upload-bar ajax-file-upload-1438968315092" style="width: 100%; text-align: center;">100%</div></div>
                             <div class="ajax-file-upload-red ajax-file-upload-abort ajax-file-upload-1438968315092" style="display: none;">Abort</div>
                             <div class="ajax-file-upload-red ajax-file-upload-cancel ajax-file-upload-1438968315092" style="display: none;">Cancel</div>
                             <div class="ajax-file-upload-green" style="display: none;">Done</div><div class="ajax-file-upload-green" style="display: none;">Download</div>
                             <div class="ajax-file-upload-red" style="display: inline-block;">Delete</div></div>
						                             <div class="" id="advice-required-entry-chooseFile" style="display: none;">You need to choose at least one file</div>
                             <form method="POST" action="https://eprint4me.ca/uploader/view/ajaxUpload/" enctype="multipart/form-data" style="margin: 0px; padding: 0px;">
                              <input type="file" id="ajax-upload-id-1438952882103" name="fileToUploadbyAjax[]" accept="*" multiple="" style="position: absolute; cursor: pointer; opacity: 0;">
                             </form>
                        </div>
                    
                  </div>
                  <div id="fileuploader" style="display: none;">
                    Choose file
                  </div>
                  <div>
                  </div>
                  <div class="" id="advice-required-entry-chooseFile" style="display: none;">
                    You need to choose at least one file
                  </div>
                  
                </div>
              </li>
			</ul>
          <ul style="list-style: none;">
            <li style="margin-left: 15px; margin-top: -25px;">
              <div id="eventmessage" style="display: inline-block;">
              </div>
            </li>
          </ul>
      </div>
     
						
      <div class="file-upload-buttons">
        <ul style="list-style: none;">
          <li style="padding: 10px;">
            <div class="add-to-cart">
              <input type="hidden" name="item_id" value="">
              
              <input type="hidden" name="uploadedfiles" id="uploadedfiles" value="">
              <input type="hidden" name="product_category_id" id="product_category_id" value="291">
              <input type="hidden" name="uploadedfiles_additional" id="uploadedfiles_additional" value="">
              <button class="form-back-button" type="button" id="goBackButton" name="btnGoBack" onclick="window.location.href='https://eprint4me.ca/menu/marketing-products/postcards.html'">
                <span>
                  <span>
                    <p>
                    <img src="https://res.cloudinary.com/dtutqsucw/image/upload/v1438960670/back-button-icn.png"/ class="animated rotateIn">
                      Go back
                    </p>
                  </span>
                </span>
              </button>
              &nbsp;&nbsp;
              <button class="form-upload-button" type="submit" id="uploadFileButton" name="btnSubmit">
                <span>
                  <span id="uploadButtonName" >
                    <p>   
                      Upload
                       <img src="https://res.cloudinary.com/dtutqsucw/image/upload/v1438960670/file-upload.png"/ class="animated slideInUp">
                    </p>
                  </span>
                </span>
              </button>
            </div>
          </li>
        </ul>
      </div>
  </div>
                                  </form>
    <div class="about-template-tips">
      <div class="fieldset about-template">
        <h4 class="legend">
          PDF template references:
        </h4>
        <p>
          You can download the PDF template below and follow the specifications inside
        </p>
        <ol style="list-style-type: initial; margin-left: 20px;">
          <li style="padding: 5px;">
            <a href="/media/guides/pdf/4_x_6.pdf" title="4&quot; x 6&quot;" target="_blank">
              4" x 6"
            </a>
          </li>
        </ol>
      </div>
      <div class="fieldset template-prep-tips">
        <h4 class="legend">
          Artwork Preparation Tips
        </h4>
        <ol style="list-style-type: decimal; margin-left: 20px;">
          <li>
            Download our guides/templates to ensure a more optimal print result.
          </li>
          <li>
            Files must be submitted with proper orientation to ensure proper back up.
          </li>
          <li>
            It is best to try to avoid using borders in your design. If a border is too close to the trim, the trim may be slightly off-center.
          </li>
          <li>
            File must consist of 1/8" bleed and all important art and text must be within the safety margin.
          </li>
          <li>
            Ensure that your PDF is high res and that all images are CMYK at 300 DPI.
          </li>
          <li>
            Black type should have the following values: C0, M0, Y0, K100.
          </li>
          <li>
            Embed or outline all fonts.
          </li>
          <li>
            Ensure your artwork colour is in CMYK format
          </li>
        </ol>
      </div>
  </div>
  </div>
</div>
</div>
              
            
!

CSS

              
                .button-set {
  background-color: white;
  margin: 0 auto;
  width: 40%;
}
.button-set h4 {
  font-size: 25px;
  color: #2f8ecc;
}

.upload-drag-and-drop-box {
  min-height: 150px;
  border: 3px dashed grey;
  text-align: center;
  padding: 50px 0px 10px 0px;
}
.upload-drag-and-drop-box:hover {
  min-height: 150px;
  border: 3px solid grey;
  text-align: center;
  background: rgba(68, 177, 250, 0.08);;
  padding: 50px 0px 10px 0px;
}

.file-type-desc {
  font-size: 18px;
  color: black;
  margin-top: 10px;
  padding-bottom: 5px;
}
.drag-drop-text {
  font-size: 20px;
  display: inline-block;
  color: #8c99a5;
  font-weight: normal;
}
.browse-button {
    font-size: 17px;
    padding: 1px;
    line-height: normal;
    box-shadow: none;
    background-color: grey;
    color: #F9FAFA;
    padding: 7px 15px 7px 15px;
    margin-left: 3px;
    border-radius: 5px;
    display: inline;
    text-decoration: underline;
    font-weight: normal;
}

.file-upload-buttons {
  margin: 0 auto;
  width: 50%;
  text-align: center;
}
.form-back-button {
  background: #8d999f;
  padding: 10px 40px 0px 40px;
  margin-right: 25px;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 20px;
  -webkit-box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
  -moz-box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
  box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
}
.form-back-button img {
  margin-right: 10px;
  position: relative;
}
.form-back-button:hover {
  -webkit-box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
  -moz-box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
  box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
}
.form-back-button img:hover {
  right: 2px;
}
.form-upload-button {
  background: #44B1FA;
  padding: 10px 40px 0px 40px;
  min-height: 55px;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 20px;
  -webkit-box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
  -moz-box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
  box-shadow: 2px 2px 7px 0px rgba(50, 50, 50, 0.55);
}

.form-upload-button img {
  margin-left: 5px;
  position: relative;
}
.form-upload-button:hover {
  -webkit-box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
  -moz-box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
  box-shadow: 1px 1px 7px 0px rgba(50, 50, 50, 0.55);
}
.form-upload-button img:hover {
   top: -2px
}
.about-template {
   
}
.template-prep-tips {

}
.about-template-tips {
  background-color: white;
  padding: 20px 15px 30px 25px;
  margin: 0 auto;
  margin-bottom: 40px;
  width: 80%;
  border: 2px solid #2f8ecc;
  border-radius: 5px;
  font-size: 15px;
  overflow: hidden;
}
.ajax-file-upload-statusbar {
    border: 1px solid rgba(184,187,187,1);
    margin-right: 14px;
    margin: 25px 0px 0px 0px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 5px 5px 5px 5px;
    width: 21px;
    -webkit-box-shadow: 3px 3px 7px -1px rgba(184,187,187,1);
    -moz-box-shadow: 3px 3px 7px -1px rgba(184,187,187,1);
    box-shadow: 3px 3px 7px -1px rgba(184,187,187,1);
}
.ajax-file-upload-progress {
    margin: 0 10px 5px 10px;
    min-height: 31px;
    position: relative;
    width: 78%;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 3px;
    display: inline-block;
}
.ajax-file-upload-bar {
    background-color: #0ba1b5;
    width: 0;
    height: 25px;
    font-size: 17px;
    border-radius: 3px;
    color: #FFFFFF;
}
              
            
!

JS

              
                
              
            
!
999px

Console