Is there a way to retain the borders inside the table even when the background images are hidden? I am using JS and jQuery to add the picture when the site is loaded.
Below is a snippet of my HTML and CSS:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<table border="1px" id="container" >
<tr>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
</tr>
<tr>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
</tr>
<tr>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
</tr>
<tr>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
<td class="a"></td>
</tr>
</table>
</body>
</html>
.a{
height:200px;
width:200px;
}
.pic{
background-image:url(pic.jpg);
background-size:195px 195px;
background-repeat:no-repeat;
visibiility:hidden;
}