2
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 him 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 put as position Absolute and using margin to reach my destination, but I believe that this is not the correct way to do.
Dude you’re using Bootstrap?? Which version?
– hugocsl
material design bootstrap, latest version
– veroneseComS
I tried it this way: #colDash::BEFORE { content: "." ; width: 0; margin: -30%; height: 0; border-style: Solid; border-width: 17.5px 30.3px 17.5px 0; border-color: Transparent #026FBD Transparent Transparent; z-index: 9; position: Absolute; margin-left: 62%; }
– veroneseComS