Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/04/2011, 13:10
vidbaz
 
Fecha de Ingreso: marzo-2010
Mensajes: 9
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: Ingresar texto al inicio de un div

mmm no muy te entendi fijate pero intentare ayudarte
segun entendi keras acer que se centre ese texto no?
mmm podrias explicar un poco mas
Código HTML:
Ver original
  1.     <head>
  2.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3.         <title></title>
  4.          <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js" type="text/javascript"></script>
  5.         <script>
  6.  
  7.         $(document).ready(function(){
  8.                 $("#boton").click(function(evento){
  9.                 evento.preventDefault();
  10.                 $("#idDiv").slideUp("slow");
  11.                 $("#idDiv").html("<center><h5>Hola</h5></center>");
  12.                 $("#idDiv").slideDown("slow");
  13.             });
  14.        });
  15.  
  16.         </script>
  17.    
  18.     </head>
  19.     <body>
  20.         <h1>Ejemplo</h1>
  21.         <form>
  22.             <input  id="boton" type="submit" value="Centrar"/>
  23.             <div id ="idDiv">Hola</div>
  24.         </form>
  25.     </body>
  26. </html>