Good day! I have a triangle shape with borders on css. But for some reason, when scaling the screen in the browser, this figure is distorted. Tell me, please, how can I fix this, or do it differently? Thank!
body, html {background:#fff;} .bar { display: block; position: relative; width: 100%; height: 50px; background-color: #f1f1f1; border-bottom: 1px solid #e5e5e5; } .active-ico { position: absolute; bottom: 0; margin-left: 50%; left: -8px; margin-bottom: -1px; border: 8px solid transparent; border-bottom: 10px solid #ccc; width: 0; height: 0; } .active-ico:before { content: ""; display: block; position: absolute; bottom: -9px; margin-left: 50%; left: -8px; margin-bottom: -2px; border: 8px solid transparent; border-bottom: 10px solid #fff; width: 0; height: 0; } <div class="bar"><div class="active-ico"></div></div>