If you want to achieve a unique design using CSS, consider implementing solid borders on the bottom, right, and left sides, while doubling up on the top border. This creates an interesting visual effect similar to having a metal frame around an image that is rounded at the corners. Take a look at the examples below for inspiration:
- Example with solid borders:
background: none repeat scroll 0 0 gray;
border-color: red;
border-radius: 0;
border-style: double solid solid solid; // top, right, bottom, left
border-width: 15px;
height: 150px;
width: 150px;
To round off the borders, simply adjust the border-radius
property to 50%
:
Rounded borders example:
border-radius: 50%;
If you add an inset
style to the top border, it will create a different look:
border-style: inset solid solid solid; // top, right, bottom, left