There are a few methods available to set a border on an element: border, outline, and box-shadow. Each approach comes with its own advantages and disadvantages, especially when it comes to animating the borders. The main reason to not use a proper CSS border is for animation purposes. The border-image does not follow the border-radius. does not following the border radius.
Table of contents
Setting borders #Retaining the box model #Bonus Content: border-image #In closing #3 Comments
Sort: