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="samsung">
  <div class="border">

<!-- DEMO -->
<a href="" target="_blank" class="article" style="display:none">Read Article</a>


                section.socialShare {
  padding: 0;
  margin: 0;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1999999999;

section.socialShare > a {
  display: inline-block;
  width: 20%;
  height: 45px;
  background: #333;
  text-align: center;
  line-height: 45px;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;

section.socialShare a.facebook {
  background: #4a67b7;

section.socialShare a.twitter {
  background: #22b0f2;

section.socialShare a.linkedin {
  background: #007bb5;

section.socialShare a.whatsapp {
  background: #2ab200;

section.socialShare {
  background: #bc1515;

section.socialShare > a,
section.socialShare > a:hover,
section.socialShare > a:visited,
section.socialShare > a:active {
  color: white !important;
  text-decoration: none !important;

/* DEMO */

.samsung {
  width: 300px;
  height: 601px;
  background-image: url('');
  background-size: 100% 100%;
  margin: 0 auto;
  position: relative;

.border {
  position: absolute;
  top: 10.4%;
  right: 4.8%;
  left: 4.8%;
  bottom: 9.4%;
  overflow: hidden;

section.socialShare {
  position: absolute;

a.article {
  position: fixed;
  bottom: 15px;
  left: 15px;
  display: table;
  text-decoration: none;
  color: white;
  background-color: #F44336;
  padding: 10px 20px;
  border-radius: 25px;
  font: 400 15px 'Open Sans', sans-serif;


                /* HOW TO USE (for more information >

You do not need to do any development. This script will collect your page title and url automatically.

Remove comments from line 7 and 33. Write your Twitter username to line 9. At last go to line 32 and change div.border to body. Everything is ready. Enjoy! */

// if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {

var twitterUser = '@adobewordpress'; /* Your Twitter Username */

// No need to change anything else :) 

var shareURL = window.location.href
var shareTitle = document.getElementsByTagName("title")[0].innerHTML;
var shareTweetdata = shareTitle + ' ' + twitterUser + ' ';

// If Font Awesome not included to project, we create related link tag inside of <head></head> elements. 
document.fonts.ready.then(function() {
  if (document.fonts.check('1em "FontAwesome"') != true) {
    $('head').append('<link rel="stylesheet" href="">');

var dataList = '<section class="socialShare">' +
  '<a class="facebook" target="_blank" href="' + shareURL + '"><i class="fa fa-facebook"></i></a>' +
  '<a class="twitter" target="_blank" href="' + shareTweetdata + '&amp;url=' + shareURL + '"><i class="fa fa-twitter"></i></a>' +
  '<a class="linkedin" target="_blank" href=";url=' + shareURL + '&amp;title=' + shareTitle + '"><i class="fa fa-linkedin"></i></a>' +
  '<a class="whatsapp" target="_blank" href="whatsapp://send?text=' + shareTitle + '%20' + shareURL + '"><i class="fa fa-whatsapp"></i></a>' +
  '<a class="email" href="mailto:?subject=' + shareTitle + '&amp;body=' + shareURL + '"><i class="fa fa-envelope"></i></a>' +

// }

/* DEMO */
if(parent==top) {