I need to created a responsive triangle using css and html. The triangle will comprise of text and as the text would increase I want the size of triangle to also increase.
Below is the fiddle which I have created.
<div class="wrapper">
<div class="top-layer-content banner-notch"></div>
<a class="icon-play fa fa-play-circle-o" rel="lightbox" href="#">
<p> See it in action</p>
</a>
<div>
.wrapper{
position:relative;
}
.banner-notch {
width: 0;
height: 0;
border-bottom: 220px solid #000;
border-left: 220px solid transparent;
filter: alpha(opacity=50);
opacity: 0.6;
color:white;
position:relative;
float:right;
}
.wrapper a{
position:absolute;
top:130px;
right:20px;
color:white;
text-decoration:none;
font-size:25px;
background-position:0 50px;
}
.wrapper .fa-play-circle-o:before{
padding-left:38px;
}
.wrapper p{
font-size:16px;
}
I checked the follow links but it seems the triangle shape is different and the text does not seem to wrap. Text starts overflowing.
Thanks, Hardik