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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!DOCTYPE html>
<html lang="en">
<head>
<title>Home | Presidential Store</title>
  </head>
  <body>
<p style="color: red; text-decoration: underline; float: right;"><a style="color: red; text-decoration: underline;" id="name1" href="">Your Account</a></p>
<br>
<header class="sticky"><a href="" id="header1"><h1>Presidential Store</h1></a></header>
<nav class="sticky">
  <ul class="menu">
    <li><a href="" id="l-home">Home</a></li>
    <li><a href="" id="l-food">Food</a></li>
    <li><a href="" id="l-household">Household</a></li>
    <li><a href="" id="l-pets">Pets</a></li>
    <li><a href="" id="l-toys">Toys & Games</a></li>
    <li><a href="" id="l-school">School Supplies</a></li>
    <li><a href="" id="l-clothes">Clothes</a></li>
    <li style="float: right; border-left: 2px solid black;"><a href="" id="l-cart">🛒</a></li>
  </ul>
</nav>
<h2 id="banner"><p id="demo"></p></h2>
<section class="ads">
<h2>Presidential Store Advertisements</h2> 
<table>
<tr>
<td>
<!--<div id="psad1"><h2 class="adh3">August S'Mores</h2> <p>August is Animalton S'Mores month!<br><br><i>august2019smores</i><br><br><br>Expires 8/31/2019</p> </div>--></td>
<td style="width: 138px;">
</td>
</tr>
</table>
</section>
<section class="pop-items">
<h2>Popular Items</h2>
<table>
<tr>
<td>
<div class="item"> 
<br>
<b>Granny Smith Apples</b>
<br>
<i>$1.99/Lb.</i>
<br>
Item# <i>01-001-FRT01</i>
<br>
<span style="Color: Blue;">Fruit</span>
<br>
<br>
<a href="" target="_blank"><button class="cart">Add to Cart</button></a>
</div>
</td>
<td>
<div class="item"> 
<br>
<b>Orange Carrots</b>
<br>
<i>$2.99/Lb.</i>
<br>
Item# <i>01-001-VEG01</i>
<br>
<span style="Color: Orange;">Vegetables</span>
<br>
<br>
<a href="" target="_blank"><button class="cart">Add to Cart</button></a>
</div>
</td>
<td>
<div class="item"> 
<br>
<b>Raspberries</b>
<br>
<i>$2.99/8 Oz.</i>
<br>
Item# <i>01-001-FRT13</i>
<br>
<span style="Color: Blue;">Fruit</span>
<br>
<br>
<a href="" target="_blank"><button class="cart">Add to Cart</button></a>
</div>
</td>
<td>
<div class="item">
<br>
<b>Gold. Delicious Apples</b>
<br>
<i>$1.99/Lb.</i>
<br>
Item# <i>01-001-FRT03</i>
<br>
<span style="Color: Blue;">Fruit</span>
<br>
<br>
<a href="" target="_blank"><button class="cart">Add to Cart</button></a>
</div>
</td>
<td>
<div>

</div>
</td>
<td>
<div>

</div>
</td>
<td>
<div>

</div>
</td>
<td>
<div>

</div>
</td>
<td>
<div>

</div>
</td>
</tr>
</table>
</section>
<section class="pop-items">
<h2>New Items</h2>
<p>There are currently no new items. <data value="10 more items...">Please check later.</data></p>
</section>

<section class="ads">
<h2>Presidential Store News & Events</h2>
<hr>
<article>
<h3>Item Blocks are going to change soon!</h3>
<b>Posted on</b> <i><time datetime="2019-10-12 12:00">October 12, 2019</time></i><br>
The item blocks on the food section are scheduled to have a major change pretty soon!
</article>
<hr>
<article>
<h3>August is Animalton S'Mores Month!</h3>
<b>Posted on</b> <i><time datetime="2019-07-30 17:00">July 30, 2019</time></i><br>
August is Animalton's S'More month. Enjoy S'Mores and the outdoors and save on marshmellows, graham crackers, and Hersheys Chocolate with code <i>august2019smores</i> !!
</article>
<hr>
<br>
</section>
<footer>©2019 Presidential Store<br>
</footer>
</div>

</body>
</html>
              
            
!

CSS

              
                body {
background-color: lightBlue;
/* transform: rotate(180deg); */
}
header h1 {
background-color: Green;
text-align: center;
text-decoration: none;
color: Black;
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
padding: 20px;
}

footer {
background-color: Green;
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
}

h2 {
background-color: Green;
text-align: center;
text-decoration: none;
color: Black;
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
}

#header1 {
text-decoration: none;
color: Black;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: Gray;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
}

li {
  float: left;
  border-right: 2px solid Black;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: darkGray;
}

.sticky {
position: sticky;
}

.ads {
background-color: Gray;
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
width: 100%;
}

.pop-items {
background-color: Gray;
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
width: 100%;
}

.item {
background-color: lightGray;
border: 2px solid Black;
width: 158px;
height: 158px;
color: black;
text-align: Center;
}

.cart {
background-color: whiteSmoke;
border: 2px solid Black;
width: 130px;
}

h2#banner {
text-align: center;
background-image: linear-gradient(to right, red, orange, yellow, lightYellow, yellow, orange, red);
}


#demo {
color: red;
text-align: center;
background-image: linear-gradient(to right, red, orange, yellow, lightYellow, yellow, orange, red);
box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
}
#idad {
float: right;
width: 680px;
height: 360px;
background-image: linear-gradient(to bottom, red, white, blue);
text-align: Center;
}
.adh3 {
text-align: Center;
border: 2px solid whiteSmoke;
box-shadow: none;
background-color: whiteSmoke;
}
#psad1 {
float: left;
width: 680px;
height: 360px;
background-color: sandyBrown;
text-align: Center;
}

hr {
border: 2px groove black;
}

article {
background-color: slateGray;
}

progress::-ms-fill {
  background-color: green;
}

.polling_message {
  color: white;
  float: left;
  margin-right: 2%;
}

.view_port {
  background-color: black;
  height: 25px;
  width: 100%;
  overflow: hidden;
}

.cylon_eye {
  color: white;
  height: 100%;
  width: 40%;

  -webkit-animation: 15s linear 0s infinite move_eye;
          animation: 15s linear 0s infinite move_eye;
}

.cylon_eye1 {
  color: white;
  height: 100%;
  width: 80%;

  -webkit-animation: 16s linear 0s infinite move_eye1;
          animation: 16s linear 0s infinite move_eye1;
}

@-webkit-keyframes move_eye { from { margin-left: 100%; } to { margin-left: -100%; }  }
        @keyframes move_eye { from { margin-left: 100%; } to { margin-left: -100%; }  }

@-webkit-keyframes move_eye1 { from { margin-left: 100%; } to { margin-left: -100%; }  }
        @keyframes move_eye1 { from { margin-left: 100%; } to { margin-left: -100%; }  }

              
            
!

JS

              
                var countDownDate = new Date("Sep 23, 2019 00:00:00").getTime();

var x = setInterval(function() {
  var now = new Date().getTime();
  var distance = countDownDate - now;
  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  document.getElementById("demo").innerHTML = "First Day of Fall 2019 Countdown:  " + days + " day(s), " + hours + " hour(s), "
  + minutes + " minute(s), " + seconds + " second(s) left! ";
  if (distance < 0) {
    clearInterval(x);
    document.getElementById("demo").innerHTML = "Welcome!";
  }
}, 1000);
              
            
!
999px

Console