You are using fractional values in px
unit for height. change it to integer value. It will work.
span div {
background: #262626;
height: 2px;
width: 200px;
margin-top: 6px;
border-radius: 15%;
}
<span>
<div></div>
<div></div>
<div></div>
</span>
UPDATE
AFAIK fractional pixels or sub-pixels are rounded or considered differently in different browsers. In chrome, it should display these divs
with equal height. but it may vary according to screen size.
Run the below snippet and try to zoom-in
the screen, you will see at some point these divs
are having equal height
. But at another zoom levels divs
will display with uneqaul heights.
More info: Sub-Pixel Problems in CSS
span div {
background: #262626;
height: 1.5px;
width: 100px;
margin-top: 6px;
border-radius: 15%;
}
<span>
<div></div>
<div></div>
<div></div>
</span>