CSS border-width:1px doesn't give me equally thin borders

前端 未结 3 1941
难免孤独
难免孤独 2021-01-21 10:21

I am trying add thin borders to a div. My CSS is like this:

border: solid;
border-width: 1px;

Yet the result borders don\'t look e

3条回答
  •  无人及你
    2021-01-21 10:43

    You likely have other elements to the left and below the box and may be accidentally applying borders to them as well to make it appear that they have "double" borders.

    Make sure you isolate the box and try again.

    A 1px border can't be uneven like you are displaying.

提交回复
热议问题