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 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.

Quick-add: + add another resource

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.

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.

  <link href="https://fonts.googleapis.com/css?family=Raleway:400,900i" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Comfortaa:400,700" rel="stylesheet">
  <div class="container">
    <div id="day"></div>
    <div id="date"></div>
              $background: #A4D7ED;
$background2: #DEC5E3;
$day: #DDF8E8;
$date: #DDF8E8;
$font: #324376;
$border: #A6EDE2;

  background: $background; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left, $background, $background2); /*Safari 5.1-6*/
  background: -o-linear-gradient(right, $background, $background2); /*Opera 11.1-12*/
  background: -moz-linear-gradient(right, $background, $background2); /*Fx 3.6-15*/
  background: linear-gradient(to right, $background, $background2); /*Standard*/
  color: $font;
  font-family: 'Comfortaa', cursive;
  height: 250px;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  justify-content: space-around;
  padding: 10% 0 0 0;
  margin: 0; 
#day, #date{
  text-align: center; 
  box-sizing: border-box;
  height: 250px;
  width: 230px;
  border-radius: 10%;
  border: 10px solid $border;
   2px 2px 2px $font,
   -2px 2px 2px $font,
   -2px -2px 2px $font,
   2px -2px 2px $font
   margin-top: 5%; 
  background: $day;
  font-size: 20px;
  font-weight: 900;
  padding-top: 80px; 
#day span{
  display: block;
  font-weight: 700;
  font-size: 30px;
  padding-top: 60px;
  background: $date;
  font-size: 30px;
  font-weight: 900; 
#date span{  
  display: block;
  font-family: 'Raleway';
  font-weight: 700;
  font-size: 60px;
  line-height: 45px;
  padding-bottom: 15px;
              var date = new Date();
var day = date.getDate();
var year = date.getFullYear();

var month = date.getMonth();
var monthLabels= ["January", "February",  "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

var weekDay = date.getDay();
var weekDayLabels = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];

//create function to grab day, month, date, year
function Day(){
month = monthLabels[month];
weekDay = weekDayLabels[weekDay];
document.getElementById("day").innerHTML = "Today is " + "<span>" + weekDay.toUpperCase() + "</span>";
document.getElementById("date").innerHTML = month.toUpperCase() + " " + "<span>" + day + "</span>" + year;  

Loading ..................