JSFiddle - React, Tailwind, and code Playground
HTML
<nav>
<div class="container">
<div class="row-fluid center">
<div id="navcontainerimg" class="span12 center">
</div>
<div id="navcontainernav" class="span12 center">
<span class="topleft">Our Story</span>
<span class="topright">Awesome Support!</span>
<span class="bottomleft">Read the Blog!</span>
<span class="bottomright">Join Now</span>
</div>
</div>
</div>
</nav>
CSS
#navcontainerimg
{
width: 800px;
height: 300px;
}
#navcontainernav
{
width: 720px;
margin-left: 40px;
height: 170px;
top: -233px;
border-radius: 8px;
position: relative;
z-index: -5;
}
.topleft, .topright, .bottomleft, .bottomright
{
position: relative;
color: white;
font-family: 'Sansita One';
font-size: 20px;
letter-spacing: 1px;
background: #a1cbb3;
padding: 6px;
width: 255px;
}
.topleft
{
top: 0px;
left: 5px;
float: left;
border-top-left-radius: 8px;
}
.topright
{
top: 0px;
right: 5px;
float: right;
width: 233px;
border-top-right-radius: 8px;
}
.bottomleft
{
bottom: -90px;
left: 5px;
float: left;
border-bottom-left-radius: 8px;
}
.bottomright
{
bottom: -90px;
right: 5px;
float: right;
border-bottom-right-radius: 8px;
}
span.topleft:hover, .topleft span:hover, span:hover, .topleft:hover
{
background:pink;
}