I've been grappling with a CSS background-image
dilemma that's got me stumped.
Here's the situation:
CSS
#yes {
background-image:url("../tick.png");
background-repeat: no-repeat;
height: 16px;
width: 16px;
}
#no {
background-image:url("../cross.png");
background-repeat: no-repeat;
height: 16px;
width: 16px;
}
HTML
<td id="yes"></td>
<td>Item 1</td>
<td id="no"></td>
<td>Item 2</td>
Result
No matter what I try, I just can't seem to get the #no
id to cooperate.
- I've verified that I can access the image through a web browser and it displays correctly.
- Even when I substitute
cross.png
withtick.png
(a known working image), it still refuses to show up. - I attempted using the absolute path
but to no avail.background-image:url("http://.../cross.png");
What else is there left to troubleshoot?
While I know I could simply opt for <img...
tags (which function flawlessly), I am determined not to be beaten.
Could someone please help end my torment!?
An immense thank you in advance.