Alternative for CSS border without changing width size

You can use as an alternative to fix the issue of changing border size when the is used. Normal Code Workaround Code