My CSS file is:
#name_wrong_img
{
width:43px;
height:29px;
}
This is my HTML code:
<img id="name_wrong_img" src="wrong.jpg" />
The above code is working well in both Firefox and Chrome.
#name_wrong_img
{
content:url(wrong.jpg);
width:43px;
height:29px;
}
<img id="name_wrong_img" />
This is working well in Chrome. But not in Firefox. What is the problem in this?