Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/03/2012, 05:23
Avatar de 00israel
00israel
 
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 3 meses
Puntos: 5
Respuesta: poner imagen de fondo o fondo de color a un texto?

he puesto este codigo, pero solo me muestra un fondo en lugar de los 4 distintos que deberia de mostrarme:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento sin título</title>
<style type="text/css">
.texto {
	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	color: #000;
	background-image: url(fondo2.gif);
	background-repeat: no-repeat;
}
.texto-2 {
	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	color: #000;
	background-repeat: no-repeat;
	background-image: url(fondo.gif);
}
.texto-3 {
	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	color: #000;
	background-repeat: no-repeat;
	background-image: url(fondo3.gif);
}
.texto-4 {
	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	color: #000;
	background-repeat: no-repeat;
	background-image: url(fondo4.gif);
}
</style>
</head>

<body>
 <p class="texto">&nbsp; diseño 1 
 <br /> <span class="texto-2">&nbsp;</span>&nbsp;diseño 2
 <br /> <span class="texto-3">&nbsp;</span>&nbsp;diseño 3
 <br /> <span class="texto-4">&nbsp;</span>&nbsp;diseño 4</p>
</body>
</html>