<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html><html class=''>
<head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/_nile/pen/EgWwOV?limit=all&page=27&q=service" />
<style class="cp-pen-styles">/*
auther : Ahmed Abo Elrayat;
images source : https://unsplash.com;
*/
@import 'https://fonts.googleapis.com/css?family=Raleway';
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: Raleway, sans-serif;
transition: all 0.3s ease-in-out
}
.container {
height: 100vh;
width: 100%;
display: flex;
align-items: stretch;
align-content: space-around;
}
.box {
flex: 1;
color: #fff;
display: flex;
align-content: center;
align-items: center;
flex-flow: wrap;
overflow: hidden;
cursor: pointer
}
.box:hover {
flex-grow: 2
}
.box h2{
color: #fff;
margin: auto;
font: 700 2vw/45px raleway;
text-transform: uppercase;
letter-spacing: 5px;
text-shadow: -1px 1px 1px rgba(0,0,0,0.5)
}
.box p{
font: 100 14px/29px raleway;
color: #ecf0f1;
text-align: center;
width: 90%;
margin: auto;
text-shadow: -1px 1px 1px rgba(0,0,0,0.2);
}
.box:first-of-type {
background: linear-gradient(to top, rgba(41, 128, 185, 1), rgba(41, 128, 185, 0.7)),
url('https://s9.postimg.org/5r18saj1b/image.jpg') no-repeat center;
background-size: cover;
}
.box:nth-of-type(2) {
background: linear-gradient(to top, rgba(127, 140, 141, 1.0), rgba(127, 140, 141, 0.7)),
url('https://s9.postimg.org/7k45gm47z/image.jpg') no-repeat center;
background-size: cover;
}
.box:nth-of-type(3) {
background: linear-gradient(to top, rgba(44, 62, 80, 1.0), rgba(44, 62, 80, 0.7)),
url('https://s9.postimg.org/nwe76cijj/image.jpg') no-repeat center;
background-size: cover;
}
.box:last-of-type {
background: linear-gradient(to top, rgba(39, 174, 96, 1.0), rgba(39, 174, 96, 0.7)),
url('https://s9.postimg.org/ffeovfdun/image.jpg') no-repeat center;
background-size: cover
}
@media screen and (max-width:600px) {
h2 {font-size: 30px !important}
p {display: none}
.container {display: block;}
.box {
display: flex;
width: 100%;
height: 25vh;
}
}</style></head><body>
<div class="container">
<div class="box">
<h2>service</h2>
<p>Lorem Ipsum is simply dummy text</p>
</div>
<div class="box">
<h2>Protfolio</h2>
<p>Lorem Ipsum is simply dummy text</p>
</div>
<div class="box">
<h2>Contact us</h2>
<p>Lorem Ipsum is simply dummy text</p>
</div>
<div class="box">
<h2>about</h2>
<p>Lorem Ipsum is simply dummy text</p>
</div>
</div>
</body></html>