*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body
{
height: 100%;
}
body
{
display: grid;
align-items: center;
background-image: linear-gradient(to left,#3c4cad,#24de89);
}
.hour
{
background: rgba(0,0,0,0.3);
height: 100px;
line-height: 100px;
text-align: center;
padding: 0 5px;
box-shadow: 2px 10px rgba(0,0,0,0.5);
border-radius: 35px;
}
.hour .display
{
font-size: 40px;
color: #fff;
letter-spacing: 3px;
place-items: center;
}
.hour .display:hover
{
letter-spacing: 8px;
cursor: pointer;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter