+ 1

Can anyone tell me, why border code is not working on it?

<img src="http://www.sololearn.com/images/tree.jpg" style="width:250px; height:250px; border:5px;" alt=""/>

23rd Oct 2019, 8:54 AM
Muhammad Nouman
Muhammad Nouman - avatar
4 ответов
+ 8
You need to specify style and color of border border: 5px solid black; or each property separately : border:5px; border-style:solid; border-color:black;
23rd Oct 2019, 8:56 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 7
You need to all propties. For example:- border: solid 5px ; solid specifies that border type is solid 5px specifies that border is 5 pixel thicker.You can also change colors of borders. For example:- border:solid 5px red; You can also add many type colors like red,yellow,green,blue,pink and many more.
15th Nov 2019, 2:00 PM
Varinder Singh
Varinder Singh - avatar
+ 2
Thanks
23rd Oct 2019, 10:42 AM
Muhammad Nouman
Muhammad Nouman - avatar