How can I position a div that creates a triangle next to an item in my menu?
<div class="triangulo">
</div>
.triangulo{
width: 0;
height: 0;
border-style: solid;
border-width: 17.5px 30.3px 17.5px 0;
border-color: transparent gray transparent transparent;
}
I need to position it next to the dashboard icon.
<div class="sidenavprincipal z-depth-1">
<div id="avatar"></div>
<div id="containerIconesLateral" class="container">
<div class="row">
<div class="col-12 alinhaColuna">
<svg class="svgIconeMenu" style="width:40px;height:40px" viewBox="0 0 24 24">
<path fill="rgb(161,196,66)" d="M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z" />
</svg>
</div>
<div class="col-12">
<span class="tipografiaDescricaoIcone">Dashboard</span>
</div>
</div>
I managed to position as absolute position and using margin until arriving at my destination, but I believe that this is not the correct way to do it.