I want to position a text or a css triangle in the top-right angle of this div that also has an image inside positioned on the center. The problem is that when I try to position the css triangle I cannot position them well if it's relative. And if I set as absolute then for some reason it doesn't work properly.
.item {
background-color: #ffffff;
border: 1px solid rgba(153, 153, 153, 0.3);
color: #363636;
display: flex;
flex-direction: column;
font-size: 20px;
font-weight: 400;
margin-top: 34px;
width: calc(33% - 15px);
text-align: center;
}
<div class="item">
<img src="img.png" width="50" height="50">
<!--Here the css div triangle or the text-->
</div>
<header> Some text</header>
</div>