0
How to add border to <div>
4 odpowiedzi
+ 4
You specify a height and a width then you add (CSS)
border: 1px solid #000;
1px refers to the border thickness. increase it if you want thicker borders
solid refers to the type of the borders. there are many others.
#000 refers to the color. you can write the name of the color instead like black, white, red for instance.
+ 1
<div style="border:1px solid black;">...<\div>
0
Thanks KINGDX
0
Thanks for everyone who answered.(sorry i can't type the name on my keyboard can't find the right characters.