How to make borders




in your CSS file:

element {
   border: 1px solid black;

This is a simple example of borders in CSS. There are more proprierties to put in your border, but this a simple example, for the beginning.

Well, first, add a element html, for example p or body or a or another element, second, choose your size, for example 1px or 5px or whatever you want, and for the last, choose your color of the border, in this example black, but you can choose red or another color in hexadecimal.


4 posts were split to a new topic: 25 border