+ 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=""/>
4 Answers
+ 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;
+ 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.
+ 2
Thanks