Published in: XHTML
URL: http://www.plexusweb.com/staff/colin/blog/post/95/Need-a-background-image-on-a-table-row
Gracias a este artÃculo, pude colocar fondos de imagen a para las filas de una tabla.
/* Don't do it the intuitive way... */ <table> <tr style="background: url(/images/tr-background.gif) no-repeat 0 0;"> </tr> </table> /* ...because it doesn't work in IE6 or Safari, even if you set the <td> background element to 'transparent' or 'none'. But you can still make it happen with just the one image: */ <table> <tr> </tr> </table> /* You're just altering the background-position of the image, so that what should be on the left goes on the left (at 0), the middle part goes to the middle (50% horizontally), and the last part goes at the end (100%). Remember that values in the background-position element are ordered horizontal, then vertical, unlike the margin and padding elements. And, of course, you'll want to separate presentation from content by putting the CSS elsewhere and classing the td's. */
You need to login to post a comment.
