Foros del Web » Creando para Internet » HTML »

Se me va el texto.

Estas en el tema de Se me va el texto. en el foro de HTML en Foros del Web. Hola al escribir en mi web el texto no hace un salto automaticamente cuando llega al filo de la web si no que el texto ...
  #1 (permalink)  
Antiguo 16/08/2012, 13:20
 
Fecha de Ingreso: julio-2012
Mensajes: 276
Antigüedad: 12 años, 3 meses
Puntos: 27
Se me va el texto.

Hola al escribir en mi web el texto no hace un salto automaticamente cuando llega al filo de la web si no que el texto sigue entonces tengo que ir moviendo la barrita de abajo para poder leer todo entonces la web se me desmarca

Yo quiero que al escribir automaticamente se me haga un salto de linea y hacin no se me desmarca la web.
  #2 (permalink)  
Antiguo 16/08/2012, 13:54
 
Fecha de Ingreso: enero-2012
Ubicación: Caracas
Mensajes: 75
Antigüedad: 12 años, 10 meses
Puntos: 21
Respuesta: Se me va el texto.

cuando escribes en un text-area en input-text???
o cuando muestras el texto!

si es cuando muestras el text basta con que le pongas un ancho fijo al elemento que lo contiene
para que haga un salto de linea automatico, las celdas (columnas) de tablas tienen un atributo llamado wordwrap, que hace esto automatico para evitar que se deforme la tabla.

Última edición por beeman00; 16/08/2012 a las 13:56 Razón: Correcciones
  #3 (permalink)  
Antiguo 16/08/2012, 13:56
 
Fecha de Ingreso: julio-2012
Mensajes: 276
Antigüedad: 12 años, 3 meses
Puntos: 27
Respuesta: Se me va el texto.

¿Y como hago eso me puedes pasar el codigo html?
  #4 (permalink)  
Antiguo 16/08/2012, 14:04
 
Fecha de Ingreso: enero-2012
Ubicación: Caracas
Mensajes: 75
Antigüedad: 12 años, 10 meses
Puntos: 21
Respuesta: Se me va el texto.

Código HTML:
Ver original
  1.     <tr>
  2.           <td style="word-wrap:break-word">
  3.             Exactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has to
  4.           </td>
  5.     </tr>

ese estilo se lo puedes poner a casi cualquier elemento que admita nodo de texto, p,div,span...etc.
  #5 (permalink)  
Antiguo 16/08/2012, 14:06
 
Fecha de Ingreso: julio-2012
Mensajes: 276
Antigüedad: 12 años, 3 meses
Puntos: 27
Respuesta: Se me va el texto.

pero hay otra forma de hacerlo que no sea con una tabla?
  #6 (permalink)  
Antiguo 16/08/2012, 14:11
 
Fecha de Ingreso: enero-2012
Ubicación: Caracas
Mensajes: 75
Antigüedad: 12 años, 10 meses
Puntos: 21
Respuesta: Se me va el texto.

Código HTML:
Ver original
  1. <span style="word-wrap:break-word;">Exactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has to</span>
  #7 (permalink)  
Antiguo 16/08/2012, 14:13
 
Fecha de Ingreso: julio-2012
Mensajes: 276
Antigüedad: 12 años, 3 meses
Puntos: 27
Respuesta: Se me va el texto.

Yo lo tengo con div lo que pasa que me va de un lado de la pantalla al otro y yo quiro que sea de un lado de la pantalla hasta la mitad de la pantalla

Y no que me ocupa toda la pantalla
  #8 (permalink)  
Antiguo 16/08/2012, 14:30
 
Fecha de Ingreso: enero-2012
Ubicación: Caracas
Mensajes: 75
Antigüedad: 12 años, 10 meses
Puntos: 21
Respuesta: Se me va el texto.

el style se lo colocas al div pero ademas limitas el ancho del div.

Código HTML:
Ver original
  1. <div style="word-wrap:word-break; width:300px;">Exactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has to</div>

ojo... al width le puse "300px" pero puede ser "50%" alineado a la izquierda, todo es cuestion de jugar un poco con la forma del div!
  #9 (permalink)  
Antiguo 16/08/2012, 14:33
 
Fecha de Ingreso: julio-2012
Mensajes: 276
Antigüedad: 12 años, 3 meses
Puntos: 27
Respuesta: Se me va el texto.

Cita:
Iniciado por beeman00 Ver Mensaje
el style se lo colocas al div pero ademas limitas el ancho del div.

Código HTML:
Ver original
  1. <div style="word-wrap:word-break; width:300px;">Exactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has toExactly what I was looking for. I like that it's too shy to do anything until it has to</div>

ojo... al width le puse "300px" pero puede ser "50%" alineado a la izquierda, todo es cuestion de jugar un poco con la forma del div!
Ok gracias me funciono.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:10.