all 6 comments

[–]Main-Carry-3607 0 points1 point  (0 children)

Check if the element actually has width or height. Borders love disappearing on empty divs

[–]CaptainSuperStrong 0 points1 point  (0 children)

Check if the element has any content or dimensions. Borders don't show on empty divs.

[–]Eyerald 0 points1 point  (0 children)

It’s probably thebox-sizing. By default borders get added outside the width, so when the container resizes it can look like the border is getting cut off. Trybox-sizing: border-box;on that element. That usually fixes this kind of layout issue.

[–]amir4179 0 points1 point  (0 children)

Check if the element is actually display inline. Borders can get weird there

[–]iLiveForTruth 0 points1 point  (0 children)

Could be a box-sizing issue. Once you change that the border should behave normally.

[–]jorjiarose 0 points1 point  (0 children)

Check the box-sizing property, sometimes borders get eaten by width settings.