I am currently designing a navbar for a site; I made each navbar "tab" a data cell in a table with a background image in each cell. Because my background image is not the exact width of the cell, the background image does not span the width of the cell.
How do I stretch the x-axis of a background image in a table cell while maintaining the entire height of the image? Or to put it another way, how do I NOT maintain the aspect ratio of a background image while stretching it in a certain direction by just using CSS? I am satisfied with the verticality of the image, but I want to stretch it horizontally.
Hope this makes sense.
HERE'S WHAT I HAVE, CODE-WISE:
<div class="navbar">
<table width="100%" border="0" cellspacing="0" cellpadding="0" text-align=>
<tr>
<td class="navtab"><a href="index.html">HOME</a></td>
<td class="navtab"><a href="hours-location.html">HOURS AND LOCATION</a></td>
<td class="navtab"><a href="#">ABOUT US</a></td>
<td class="navtab"><a href="#">CONTACT US</a></td>
</tr>
</table>
</div>
.navtab {
background-image: url(navtab.png);
background-size: 100%, auto;
height: auto;
width: 200px;
display: table-cell;
}