Stretch background image css?

<td class="style1" align='center' height="35">
  <div style="overflow: hidden; width: 230px;">
    <a class="link" herf="" onclick='topic(<?=$key;?>)'>
      <span id='name<?=$key;?>'><?=$name;?></span>
    </a>
  </div>
</td>

This is my CSS script

.style1 {
  background-image: url('http://localhost/msite/images/12.PNG');
  background-repeat: no-repeat;
  background-position: left center;
}

I want to stretch the background-image all over the <td> cell

5 Answers
5

Leave a Comment