After working with HTML elements and trying to incorporate 2 divs, I realized that I couldn't achieve the triangle-shaped div that I actually needed. I have included an image for reference.
Below is the HTML code snippet:
<div style="background-color:#999999;margin-bottom:20px;">
<div class="activeHeader h4Bold" style="width:40%;display:inline-block"><span class="h3Bold" style="margin-right:12px;color:#ffffff!important">1</span> Define Finished Product and Tracability Workflow</div>
<div class="inactive h4Bold" style="width:40%;display:inline-block"><span class="h3Bold" style="margin-right:12px;color:#000000!important">2</span>
</div>
</div>
Accompanied by the corresponding CSS:
.activeHeader
{
padding:9px 24px 9px 12px;
background-color:#000000;
color:#ffffff;
}
.inactive
{
padding:9px 24px 9px 12px;
background-color:#cccccc;
color:#000000;
}
Link to view on jsfiddle: http://jsfiddle.net/prashantbirajdar123/YM76v/
Also, here's the output image provided: