I'm stuck on a special design, I need to get this effect, keeping in mind that the text could be changed (since it's a wordpress website) to be on one or many lines. http://postimg.org/image/ibqntp9t1/ I achieved this effect using pseudo elements and here is my code : CSS:
.box {
background-color: #000;
}
.box:before {
content:'';
border-top: 100px solid transparent;
border-right: 28px solid #000;
width: 0px;
height: 0px;
position: absolute;
top:0px;
left: -13px;
}
The problem is that when the content changes (example: one line of text), the height of the "before" thing does not change ... Any help ? Thanks
EDIT: Solution provided below isn't working properly (not even working on firefox)