I am trying to execute the following example image using CSS borders. Is it possible? Also, is it possible to also be responsive? I started the violin here. I know that I saw it somewhere, but I can’t remember where.

Here is what I still have -
HTML
<div class="container">
<div class="row">
<div class="sign-up col-sm-9">
<div class="col-sm-4">
<h3>SIGN UP to get the latest updates on Security News</h3>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-4">
</div>
</div>
<div class="invert"></div>
<div class="submit col-sm-3">
<input type="submit" value="Submit">
</div>
</div>
</div>
CSS -
.sign-up {
background: #002d56;
padding: 0px 0px;
color: #ffffff;
font-size: 20px;
}
.sign-up h3{
padding: 10px 0px;
font-size: 20px;
}
.sign-up:after {
content: "";
display: block;
width: 0;
height: 0;
border-top: 70px solid #ffffff;
border-bottom: 69px solid #ffffff;
border-left: 70px solid #002d56;
position: absolute;
right: 0;
}
.invert {
position:relative;
}
.invert:after {
content: "";
display: block;
width: 0;
height: 0;
border-top: 70px solid #cfab7a;
border-bottom: 69px solid #cfab7a;
border-left: 70px solid #ffffff;
position: absolute;
right: 118px;
}
.submit {
background: #cfab7a;
width: 0;
height: 0;
}
.submit:before {
}
.submit input[type="submit"] {
background: #cfab7a;
padding: 10px 0px;
border: none;
}
source
share