You can use box-shadow as an alternative to fix the issue of changing border size when the border: 1px solid black; is used.

Normal Code

border: 1px solid black;

Workaround Code

box-shadow: 0 0 0 1px black;
ADVERTISEMENT

Leave a Comment

Subscribe to the Newsletter

Subscribe to get my latest content by email. I won't send you spam. Unsubscribe at any time.

Newsletter
ADVERTISEMENT