I'm struggling to display a background image inside a table data cell using CSS.
<td class='details-control'></td>
When I use the following CSS rules, the image is not displayed:
td.details-control {
background: url(http://localhost/geko/img/details_open.png) no-repeat center center;
cursor: pointer;
}
Alternatively, when I apply the style directly inline within the td tag, like this:
<td style='background: url(http://localhost/geko/img/details_open.png) no-repeat center center' class='details-control'></td>
The image shows up. What am I doing wrong with my first approach?