How to add a border with CSS
You can use CSS to apply borders to almost any element like images, text, div-tags etc. A border CSS style could look like this…
border:1px solid #2a2a2a;
This style would add a solid border with a width of 1px and the color #2a2a2a. You can set any border width and a border can have different styles like dotted, dashed, solid, double, groove, ridge, inset, outset, none or hidden. Likewise you can set any color you like.
Written by: Michael from Beginnrtuts.com 07-09-2022 Written in: CSS tutorials