Foro de elhacker.net

Programación => Desarrollo Web => Mensaje iniciado por: jperezmonge en 21 Febrero 2012, 17:45 pm



Título: Diseño a un formulario
Publicado por: jperezmonge en 21 Febrero 2012, 17:45 pm
Hola a todos, haber si me podeis echar una manita es que tengo este codigo implementado y uso navegador web chrome y se ve super feo. Haber si alguien sabe adecentarlo un poquito.

Dejo el código:

Código:
<!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>Subir Archivo</title>
</head>

<body>
<h1>Subir archivos mediante php</h1>
<form action="subirarchivo.php" method="post" enctype="multipart/form-data">
Inserte aqui su archivo:<br />

<input type="file" name="archivo">
<input type="submit" value="enviar">
</form>
</body>
</html>


Título: Re: Diseño a un formulario
Publicado por: EFEX en 21 Febrero 2012, 20:07 pm
Para el de tipo inputfile se necesita de js ademas de CSS, te dejo unos ejemplos...

Styling an input type="file"
http://www.quirksmode.org/dom/inputfile.html (http://www.quirksmode.org/dom/inputfile.html)
Styling file inputs with css and the dom
http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom (http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom)
Demo
http://jstnjns.com/jquery/file/ (http://jstnjns.com/jquery/file/)