<div class="container">
<div class="item">CSS</div>
<div class="item">Hello CSS!</div>
<div class="item">I lover CSS, CSS is awesome!</div>
<div class="item">CSS is awesome! CSS is simple, but she is not easy!</div>
</div>
@import 'https://fonts.googleapis.com/css?family=Share+Tech+Mono';
@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1376484/jess-harding-lqT6NAmTaiY-unsplash.jpg'),radial-gradient(#28a3dd, #0d7751);
background-size: cover;
background-position: center;
font-family: "Share Tech Mono", monospace;
font-size: 2rem;
background-blend-mode: multiply,screen, overlay;
}
.container {
width: 80vw;
height: 80vh;
border:4px solid #f36;
box-shadow: 1px 1px 4px 2px rgba(0,0,0,.5);
display: flex;
align-items: stretch;
}
.item {
display: flex;
justify-content: center;
align-items: center;
color: #fff;
text-shadow: 1px 1px 1px rgba(0,0,0,.5);
font-size: 6vh;
width: 10vw;
max-width: 12vw;
flex-basis: 15vw;
}
.item:nth-child(1){
background-color: #f89;
}
.item:nth-child(2){
background-color: #90f;
}
.item:nth-child(3){
background-color: #20c0a9;
}
.item:nth-child(4){
background-color: #8ac020;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.