Joan Leon
There is no longer any excuse for not playing with #css3 http://enjoycss.com/
Proceed(8)
Thanks for your like.
You've done it, haven't you?
{"sid":"17o7","rid":5,"page":"code","page_params":[],"username":"roakrak"}
Skip
Next

We'll add only required prefixes
for browsers you gonna choose,
based on data from caniuse.com
4+
4+
9+
10.5+
4+
5.0+
2.1+
7+
Hide default rules
Copy to clipboard
HTML
<div class="openinghours">CLOSE</div>
Copy to clipboard
CSS
LESS
SCSS
.openinghours {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 25%;
  height: 35%;
  margin: 50px auto auto;
  padding: auto;
  border: none;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  font: normal normal bold 45px/60px Impact, Charcoal, sans-serif;
  color: #ffffff;
  text-align: center;
  -o-text-overflow: clip;
  text-overflow: clip;
  background: url("https://www.roakrak.com/img/wood-background.jpg");
  background-position: auto auto;
  -webkit-background-origin: padding-box;
  background-origin: padding-box;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-background-size: cover;
  background-size: cover;
  -webkit-box-shadow: 4px 4px 6px 10px rgba(0,0,0,0.4) ;
  box-shadow: 4px 4px 6px 10px rgba(0,0,0,0.4) ;
  text-shadow: 4px 4px 6px rgba(0,0,0,0.5) ;
}

.openinghours:active {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  font: normal 16px/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  background-position: 100% 0;
  -webkit-background-origin: padding-box;
  background-origin: padding-box;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-background-size: auto auto;
  background-size: auto auto;
  -webkit-box-shadow: 4px 4px 6px 1px rgba(0,0,0,0.4) ;
  box-shadow: 4px 4px 6px 1px rgba(0,0,0,0.4) ;
  text-shadow: none;
}