How to give border to any element using css without adding border-width to the whole width of element

Giving a border using CSS without adding border width isn’t really a big deal, this will save you the stress from making your codes bulky, here is how it’s done

outline:1px solid white;

This won’t add the extra width and height.