JSFiddle - React, Tailwind, and code Playground
by sip
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>30.11</title>
</head>
<body>
<div class="bg">
<div class="icon">
</div>
<div class="text">
<h2>At vero et<br>accusamus</h2>
<p>Lorem ipsum dolor sit ametconsect etur abidisicing elit sed do.</p>
</div>
</div>
<div class="bg">
<div class="icon2">
</div>
<h2>massa<br>laoreetum</h2>
<p>Lorem ipsum dolor sit ametconsect etur abidisicing elit sed do.</p>
</div>
<div class="bg">
<div class="icon3">
</div>
<h2>elit<br>reprenderit</h2>
<p>Lorem ipsum dolor sit ametconsect etur abidisicing elit sed do.</p>
</div>
<div class="bg">
<div class="icon4">
</div>
<h2>Dolore<br>situmedte</h2>
<p>Lorem ipsum dolor sit ametconsect etur abidisicing elit sed do.</p>
</div>
</body>
</html>
CSS
body {
font-family: Roboto;
}
div.bg {
display: inline-block;
background-color: black;
width: 286px;
height: 150px;
padding-left: 30px;
padding-top: 30px;
}
div:hover.bg {
display: inline-block;
background-color: red;
width: 286px;
height: 150px;
padding-left: 30px;
padding-top: 30px;
}
div.icon {
display: left;
float: left;
margin: 0px;
background-repeat: no-repeat;
background-image: url(img/page1_icon1.png);
width: 64px;
height: 50px;
}
div.icon {
display: left;
float: left;
margin: 0px;
background-repeat: no-repeat;
background-image: url(img/page1_icon1.png);
width: 64px;
height: 50px;
}
div.icon2 {
float: left;
margin: 0px;
background-repeat: no-repeat;
background-image: url(img/page1_icon2.png);
width: 64px;
height: 50px;
}
div.icon3 {
float: left;
margin: 0px;
background-repeat: no-repeat;
background-image: url(img/page1_icon3.png);
width: 64px;
height: 55px;
}
div.icon4 {
float: left;
margin: 0px;
background-repeat: no-repeat;
background-image: url(img/page1_icon4.png);
width: 64px;
height: 50px;
}
h2 {
margin: 0px 0px 0px 70px;
text-transform: uppercase;
color: white;
}
p:hover {
color: white;
margin-top: 11px;
}
p {
color: #a6a4b1;
margin-top: 11px;
}