How to Design a Gradient Border with CSS
3 min readJul 28, 2020
We’re not going to use the border property, but the end result will be a responsive image with a flexible gradient “border” around it. Let’s get started.
Step 1: Create a container that is always square at every screen size
To make the border responsive and flexible it needs to fit the width of its container while holding…