asp.net - How to resize a background image to fit an asp table exactly? -


i'm creating asp.net web application , show text on top of images in table. since have not been able include both text , image control in tablecell, have nested table within each cell , set image background of table, before writing text within it. however, background image not fit cell because table automatically resized when page loads.

how can set background image fill table?

you can achieve using css:

td table {     background: url(path/to/background.png);     background-size: contain; } 

Comments