cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <div class="bubble">
  <a class="bubble-close">x</a>
  <p>To install this web app, press arrow and select <strong>"Add to Home Screen"</strong></p>

<!-- wanna the see the bubble again after you closed it? inspect/resources/localStorage/secure.codepen.io, delete the 'bubble' key and refresh -->
              /* reminder bubble styling */
    background: url('https://goo.gl/ko4fB') center top no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  background-color: #f8d97c;
  border: 3px solid #e8b929;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  color: #444;
  display: none;
  padding: 0px;
  position: fixed;
  text-align: center;
  z-index: 100;
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
.bubble p {
  font: normal 18px Arial, Sans-serif;
  margin: 8px;
.bubble strong{
  font-style: italic;
  font-weight: bold;
.bubble p, .bubble strong, .bubble span{
  text-shadow: 0 1px 0 rgba(256,256,256,0.5);
  bottom: 0;
    left: 51%;
    width: 240px;
    margin-bottom: 25px;
  margin-left: -125px;
.iphone:after {
  bottom: -16px;
  border: solid 20px transparent;
  border-bottom: 0;
  border-top-color: #f8d97c;
  content: "\0020";
  display: block;
  height: 0;
  left: 42%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
.iphone:before {
  bottom: -20px;
  border-top-color: #e8b929;
  z-index: 99;
    top: 22px;
    left: 67px;
    width: 440px;
.ipad p{
    font-size: 20px;
.ipad:after {
  top: -16px;
  border: solid 20px transparent;
  border-top: 0;
  border-bottom-color: #f8d97c;
  content: "\0020";
  display: block;
  height: 0;
  left: 16%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
.ipad:before {
  top: -20px;
  border-bottom-color: #e8b929;
  z-index: 99;
  background-color: #e8b929;
    border-radius: 80px;
    color: white;
    cursor: pointer;
    font: bold 20px Arial, Sans-serif;
    float: right;
    margin-right: -20px;
    margin-top: -15px;
    padding: 3px 9px;
              //toggle these vars to test device positioning
var isIphone = false;
var isIpad = true;

//toggle this to simulate full screen mode or not
var isStandAlone = false;

$(document).ready(function() {

function showMeTheBubble(){
        }else if(isIpad){
                localStorage.setItem("bubble", true);
Loading ..................