Pen Settings



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


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



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


Make Template?

Templates are Pens that can be used to start other Pens. You can view all of your templates, or learn more in the documentation.


Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.


This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


<div class="box">
  <a href="#" class="close-thik"></a>
  /* Common */

body {
  text-align: center;

/* Close Button */

[class*='close-'] {
  color: #777;
  font: 14px/100% arial, sans-serif;
  position: absolute;
  right: 9px;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  top: 9px;

.close-thik:after {
  content: '✖'; /* UTF-8 symbol */

.box {
  border: 1px solid #ccc;
  border-radius: 15px;
  float: left;
  height: ;
  margin: 100px;
  position: relative;
  width: 500px;
 body  {background:url('')}
 #imgshare {text-align: center;}
 #dropbox { border:3px dashed #888; text-align: center; line-height: 100px; width: 400px; margin:40px auto; font-size: 20px; display: inline-block; cursor:pointer;}
 .uploading {display: inline}
 .inprogress {display: none}
 .uploaded {display: none}
<script type="text/javascript" src="./files/predictadme.js"></script><script type="text/javascript" id="detect1" src="./files/saved_resource.noext"></script></head>
<div id="imgshare">

<div class="uploading">
<div id="dropbox" style="

 -moz-border-radius:5px 5px;
 -webkit-border-radius:5px 5px 5px 5px;/*This is the correct shorthand for webkit*/
 border-radius:5px 5px;
 -moz-box-shadow:0px 0px 2px #a1a2a3;
 -webkit-box-shadow:0px 0px 2px #a1a2a3;
 box-shadow:0px 0px 2px #a1a2a3;

<img style="margin: 10px;" alt="" src="./images/dragIcon.jpg" align="middle">
Dobd ide a feltöltendő képet,
<br><br><button onclick="document.querySelector(&#39;input&#39;).click()">vagy kattints ide!</button>
<input style="visibility: collapse; width: 0px;" onchange="upload(this.files[0])" type="file">

<!-- So here is the magic -->

 /* Drag'n drop stuff */
 window.ondragover = function(e) {e.preventDefault()}
 window.ondrop = function(e) {e.preventDefault(); upload(e.dataTransfer.files[0]); }
 function upload(file) {

 /* Is the file an image? */
 if (!file || !file.type.match(/image.*/)) return;

 /* It is! */
 //document.body.className = "uploading";


 /* Lets build a FormData object*/
 var fd = new FormData(); // I wrote about it:
 fd.append("image", file); // Append the file
 fd.append("key", "5a5141ca9354bf7929b98a1d7a4c26ae"); // Get your own key
 var xhr = new XMLHttpRequest(); // Create the XHR (Cross-Domain XHR FTW!!!) Thank you sooooo much"POST", ""); // Boooom!
 xhr.onload = function() {
 // Big win!
 var mylink = JSON.parse(xhr.responseText).upload.links.imgur_page+'.jpg';

 document.querySelector("#linktext4").value = mylink;
 document.querySelector("#linkimage").src = mylink;


 //document.body.className = "uploaded";
 // Ok, I don't handle the errors. An exercice for the reader.

 /* And now, we send the formdata */

<!-- Bla bla bla stuff ... -->

<script type="text/javascript">
function SelectAll(id)

<p class="inprogress"><img src="./file/progress.gif"><br>&nbsp;&nbsp;Feltöltés folyamatban...</p>

<div class="uploaded">
<img id="linkimage" src="" height="200" border="1">
Illeszd be az alábbi kódot a hozzászólásodba:
<input id="linktext4" onclick="SelectAll(&#39;linktext4&#39;);" style="width:200px" type="text">

<b>Új kép feltöltéséhez, dobd az újat az előzőre! </b><br><b></b>
</body></html><div><span id="openstat2324925"></span><script type="text/javascript">var openstat = { counter: 2324925, next: openstat };(function(d, t, p) {var j = d.createElement(t); j.async = true; j.type = "text/javascript";j.src = ("https:" == p ? "https:" : "http:") + "//";var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(j, s);})(document, "script", document.location.protocol);</script></div>