JSFiddle - React, Tailwind, and code Playground
by c_vilander
HTML
<div class="cat_wrapper">
<div class="fifty_col_teaser_one">
<div class="bottom_button"><a href="#">Läs mer...</a></div>
</div>
<div class="fifty_col_teaser_two">
<div class="bottom_button"><a href="#">Läs mer...</a></div>
</div>
<div style="clear: both;"></div>
</div>
CSS
.cat_wrapper {
position: relative;
top: 0;
left: 0;
width: 982px;
height: 200px;
margin: 0;
padding: 0;
}
.fifty_col_teaser_one {
position: relative;
float: left;
width: 487px;
height: 197px;
margin: 0 2px 2px 2px;
padding: 0;
background: #393939;
}
.fifty_col_teaser_two {
position: relative;
float: left;
width: 487px;
height: 197px;
margin: 0 2px 2px 2px;
padding: 0;
background: #393939;
}
.bottom_button {
position: absolute;
bottom: 10px;
right: 10px;
width: 150px;
height: 25px;
border-radius: 5px;
text-align: center;
background: #e7e7e7;
transition: background 0.2s ease-in-out;
}
.bottom_button a {
display: block;
margin: 0;
padding: 0;
width: 150px;
height: 25px;
text-decoration: none;
line-height: 25px;
letter-spacing: 1px;
color: #000;
}
.bottom_button:hover {
background: #c9c9c9;
transition: background 0.2s ease-in-out;
}