enric
19-oct-2003, 08:20
Con el siguiente codigo consigues introducir en un textarea o un textbox imagenes de fondo, combinado con otros estilos puedes acomodar la posision de la imagen y si quieres que se repita o no:
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif)">
Ejemplo sin repetir la imagen:
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif);background-repeat:no-repeat">
Imagen de fondo unica y centrada:
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif);background-repeat:no-repeat;background-position:center">
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif)">
Ejemplo sin repetir la imagen:
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif);background-repeat:no-repeat">
Imagen de fondo unica y centrada:
<INPUT TYPE="text" STYLE="background-image:url(http://www.url.gif);background-repeat:no-repeat;background-position:center">