0

How to add border to <div>

10th Mar 2017, 3:38 PM
Ajinkya Jadhav
Ajinkya Jadhav - avatar
4 Answers
+ 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.
10th Mar 2017, 4:04 PM
CHMD
CHMD - avatar
+ 1
<div style="border:1px solid black;">...<\div>
10th Mar 2017, 4:03 PM
Š’Š°Š»ŠµŃ€ŠøŠ¹ Š§ŠŗŠ°Š»Š¾Š²
Š’Š°Š»ŠµŃ€ŠøŠ¹ Š§ŠŗŠ°Š»Š¾Š² - avatar
0
Thanks KINGDX
4th Aug 2019, 2:41 AM
Ajinkya Jadhav
Ajinkya Jadhav - avatar
0
Thanks for everyone who answered.(sorry i can't type the name on my keyboard can't find the right characters.
4th Aug 2019, 2:44 AM
Ajinkya Jadhav
Ajinkya Jadhav - avatar