CodePen

HTML

            
              <div class = "container1">
  
  <div class = "button" id = "green">
    GREEN
  </div>

  <div class = "button" id = "blue">
    BLUE
  </div>
  
  <div class = "button" id = "purple">
    PURPLE
  </div>
  
</div>

<div class = "container2">
  
  <div class = "button" id = "yellow">
    YELLOW
  </div>
  
  <div class = "button" id = "orange">
    ORANGE
  </div>
  
  <div class = "button" id = "red">
    RED
  </div>
  
</div>

<!-- Developed by Thanakron Tandavas, 2013 --!>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              .button
{
  width: 250px;
	height: 50px;
  float: left;
	color: white;
  font-size: 25px;
  line-height: 50px;
  text-align: center;
  margin-right: 60px;
  margin-bottom: 60px;
  -webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

.button:hover
{
  /*
    Add margin-top to create press effect  
  */
	margin-top: 3px;
}

.button#green
{
	background-color: #2ecc71;
	-webkit-box-shadow: 0px 7px 0px rgba(39, 174, 96, 1);
	-moz-box-shadow: 0px 7px 0px rgba(39, 174, 96, 1);
	box-shadow: 0px 7px 0px rgba(39, 174, 96, 1);
}

.button#green:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #43D47A;
	-webkit-box-shadow: 0px 4px 0px rgba(39, 174, 96, 1);
	-moz-box-shadow: 0px 4px 0px rgba(39, 174, 96, 1);
	box-shadow:  0px 4px 0px rgba(39, 174, 96, 1);
}

.button#blue
{
	background-color: #00D2FF;
	-webkit-box-shadow: 0px 7px 0px rgba(0, 151, 183, 1);
	-moz-box-shadow: 0px 7px 0px rgba(0, 151, 183, 1);
	box-shadow: 0px 7px 0px rgba(0, 151, 183, 1);
}

.button#blue:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #1ed7ff;;
	-webkit-box-shadow: 0px 4px 0px rgba(0, 151, 183, 1);
	-moz-box-shadow: 0px 4px 0px rgba(0, 151, 183, 1);
	box-shadow:  0px 4px 0px rgba(0, 151, 183, 1);
}

.button#yellow
{
  
	background-color: #f1c40f;
	-webkit-box-shadow: 0px 7px 0px rgba(243,163,36,1);
	-moz-box-shadow: 0px 7px 0px rgba(243,163,36,1);
	box-shadow: 0px 7px 0px rgba(243,163,36,1);
}

.button#yellow:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #f2ca2a;
	-webkit-box-shadow: 0px 4px 0px rgba(243,163,36,1);
	-moz-box-shadow: 0px 4px 0px rgba(243,163,36,1);
	box-shadow:  0px 4px 0px rgba(243,163,36,1);
}

.button#red
{
	background-color: #e74c3c;
	-webkit-box-shadow: 0px 7px 0px rgba(192, 57, 43,1.0);
	-moz-box-shadow: 0px 7px 0px rgba(192, 57, 43,1.0);
	box-shadow: 0px 7px 0px rgba(192, 57, 43,1.0);
}

.button#red:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #e95c4d;
	-webkit-box-shadow: 0px 4px 0px rgba(192, 57, 43,1.0);
	-moz-box-shadow: 0px 4px 0px rgba(192, 57, 43,1.0);
	box-shadow:  0px 4px 0px rgba(192, 57, 43,1.0);
}

.button#purple
{
	background-color: #9b59b6;
	-webkit-box-shadow: 0px 7px 0px rgba(142, 68, 173,1.0);
	-moz-box-shadow: 0px 7px 0px rgba(142, 68, 173,1.0);
	box-shadow: 0px 7px 0px rgba(142, 68, 173,1.0);
}

.button#purple:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #a366bc;
	-webkit-box-shadow: 0px 4px 0px rgba(142, 68, 173,1.0);
	-moz-box-shadow: 0px 4px 0px rgba(142, 68, 173,1.0);
	box-shadow:  0px 4px 0px rgba(142, 68, 173,1.0);
}

.button#orange
{
	background-color: #e67e22;
	-webkit-box-shadow: 0px 7px 0px rgba(211, 84, 0,1.0);
	-moz-box-shadow: 0px 7px 0px rgba(211, 84, 0,1.0);
	box-shadow: 0px 7px 0px rgba(211, 84, 0,1.0);
}

.button#orange:hover
{
  /* 
    Decrease the shadow effect by the size
    of the margin-top effect. 
    (3 px in this case, from 7px to 4px)
  */
	background-color: #e88935;
	-webkit-box-shadow: 0px 4px 0px rgba(211, 84, 0,1.0);
	-moz-box-shadow: 0px 4px 0px rgba(211, 84, 0,1.0);
	box-shadow:  0px 4px 0px rgba(211, 84, 0,1.0);
}

.container1
{ 
  position:fixed; 
  top: 60%;
  left: 50%;
  margin-top: -125px;
  margin-left: -500px;
  height: 250px;
  width: 1000px;
} 

.container2
{ 
  position:fixed; 
  top: 90%;
  left: 50%;
  margin-top: -125px;
  margin-left: -500px;
  height: 250px;
  width: 1000px;
}

body 
{
  background: #ecf0f1;
  font-family: 'Nunito', sans-serif;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor:default;
}

@font-face 
{
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: local('Nunito-Regular'), url(http://themes.googleusercontent.com/static/fonts/nunito/v4/0rdItLTcOd8TSMl72RUU5w.woff) format('woff');
}

/* Developed by Thanakron Tandavas, 2013 */
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              /*
The MIT License (MIT)

Copyright (c) 2013 Thanakron Tandavas

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................