CSS Triangle
Propozycja
1.
<div class="box">
<div class="box-background">
<div class="title">Lorem Ipsum</div>
<div class="triangle"></div>
<div class="description">Lorem Ipsum — Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</div>
</div>
</div>
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background-color: white;
}
.box {
width: 390px;
height: 255px;
background-color: black;
margin: 1em auto;
padding: 1em;
}
.box-background {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
}
.title {
position: relative;
top: 0;
left: 0;
width: 55%;
font: 1.85em "Times New Roman";
font-weight: bold;
color: orange;
padding: 0.3em;
padding-top: 0.05em;
margin: 0;
background-color: black;
}
.triangle {
position: absolute;
top: 0;
width: 0;
border-bottom: 2.85em solid transparent;
border-right: 2.2em solid transparent;
border-left: solid 1.3em black;
}
.title, .triangle {
display: inline-block;
}
.description {
font-size: 0.98em;
width: 100%;
padding: 0.6em;
}

<div class="box">
<div class="box-background">
<div class="title">Lorem Ipsum</div>
<div class="description">Lorem Ipsum — Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</div>
</div>
</div>
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background-color: white;
}
.box {
width: 390px;
height: 255px;
background-color: black;
margin: 1em auto;
padding: 1em;
}
.box-background {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
}
.title {
position: relative;
top: 0;
left: 0;
width: 55%;
font: 1.85em "Times New Roman";
font-weight: bold;
color: orange;
padding: 0.3em;
padding-top: 0.05em;
margin: 0;
background-color: black;
}
.title::after {
content: '';
position: absolute;
top: 0;
left: 100%;
width: 0;
border-bottom: 1.5em solid transparent;
border-right: 1.8em solid transparent;
border-left: solid 0.7em black;
}
.description {
font-size: 0.98em;
width: 100%;
padding: 0.6em;
}
