Código HTML:
Ver original
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="css/index.css" /> <link rel="stylesheet" media="screen and (max-width: 600px) and (min-width: 351px)" href="css/resp.css" /> <link rel="stylesheet" media="screen and (max-width: 750px)" href="css/resp1.css" /> </head> <body> <div id="fondo"> <section id="header"> <nav id="menu"> <ul id="nav"> </ul> </nav> <div id="tfnewsearch"> <!-- name="q" --> </div> </section> </div> <div id="otro"> </div> <section id="cuadrados"> <div id="box1" value="vinos_navarra"> </div> <div id="box2" value="vinos_rioja"> </div> <div id="box3" value="vinos_alava"> </div> </section> <section id="vinos_navarra"> </section> <section id="vinos_rioja"> </section> <section id="vinos_alava"> </section> <!-- Formulario --> <!-- Estará escondido hasta que se pulse el botón de contacto --> <div id="formulario" class="modalDialog" > <div> <form method="post" id="formulario"> <div> <div> <input id="nombre" type="text" value="" size="8" tabindex="1"> </div> </div> <div> <div> <input id="email" type="email" value="" maxlength="255" tabindex="3"> </div> </div> <div> <div> <input id="asunto" type="text" value="" size="8" tabindex="1"> </div> </div> <div> <div> </div> </div> <div> <div> <input id="saveForm" name="saveForm" type="button" value="Enviar" onclick="enviar()"> </div> </div> </form> </div> </div> </body> </html>
Código CSS:
Ver original
/***************************************************************************/ /** SEARCH/BUSCADOR */ #tfnewsearch{ margin-left: 8%; float:right; padding:20px; } .tftextinput{ margin: 0; font-family: Arial, Helvetica, sans-serif; font-size:30px; border-top-left-radius: 7px 7px; border-bottom-left-radius: 7px 7px; } .tfbutton { margin: 0; cursor: pointer; margin-top: 15px; border: solid 1px rgba(120,14,62,0.7); background-color: rgba(120,14,62,0.7); border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; } .tfbutton:hover { text-decoration: none; background-color:#780E3E; } /* Soluciona el problema del submit boton con el height en FIrefox */ .tfbutton::-moz-focus-inner { border: 0; } /***************************************************************************/ /* Los Viñedos de cada provincia */ #vinos_navarra{ display:none; margin: 20px; padding: 20px; } /*#vinos_navarra > div{ width: 100px; height: 80px; }*/ #vinos_navarra > div > img{ width: 100px; height: 80px; } #vinos_rioja{ display:none; margin: 20px; padding: 20px; } /*#vinos_rioja > div{ width: 100px; height: 80px; }*/ #vinos_rioja > div > img{ width: 100px; height: 80px; } #vinos_alava{ display:none; margin: 20px; padding: 20px; } /*#vinos_alava > div{ width: 100px; height: 80px; }*/ /* Borrable?¿ */ #vinos_alava > div > img{ width: 100px; height: 80px; } #vinos_navarra > li { list-style: none; } #vinos_rioja > li { list-style: none; } #vinos_alava > li { list-style: none; } /*||*/ /***/ #vinos_navarra article { margin: 3% 0 4% 3.8%; display: inline-block; width: 20%; height: 300px; text-align: center; box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.75); overflow: hidden; } #vinos_navarra article img { width: 100%; max-height: 160px; min-height: 100px; } #vinos_navarra h3 { margin: 5% 0 3% 0; font-family: 'Lora', serif; color: #303030; } #vinos_navarra p { padding: 2%; font-size: 90%; font-family: 'Courgette', cursive; color: #797070; } #vinos_rioja article { margin: 3% 0 4% 3.8%; display: inline-block; width: 20%; height: 300px; text-align: center; box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.75); overflow: hidden; } #vinos_rioja article img { width: 100%; max-height: 160px; min-height: 100px; } #vinos_rioja h3 { margin: 5% 0 3% 0; font-family: 'Lora', serif; color: #303030; } #vinos_rioja p { padding: 2%; font-size: 90%; font-family: 'Courgette', cursive; color: #797070; } #vinos_alava article { margin: 3% 0 4% 3.8%; display: inline-block; width: 20%; height: 300px; text-align: center; box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.75); overflow: hidden; } #vinos_alava article img { width: 100%; max-height: 160px; min-height: 100px; } #vinos_alava h3 { margin: 5% 0 3% 0; font-family: 'Lora', serif; color: #303030; } #vinos_alava p { padding: 2%; font-size: 90%; font-family: 'Courgette', cursive; color: #797070; } /***************************************************************************/ /*POP UP*/ .modalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.8); z-index: 99999; opacity:0; -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; pointer-events: none; } .modalDialog:target { opacity:1; pointer-events: auto; } .modalDialog > div { width: 400px; position: relative; margin: 10% auto; padding: 5px 20px 13px 20px; border-radius: 10px; background: #fff; background: -moz-linear-gradient(#fff, #999); background: -webkit-linear-gradient(#fff, #999); background: -o-linear-gradient(#fff, #999); -webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; } a.close { background: #606061; color: #FFFFFF; line-height: 25px; position: absolute; right: -12px; text-align: center; top: -10px; width: 24px; text-decoration: none; font-weight: bold; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; -moz-box-shadow: 1px 1px 3px #000; -webkit-box-shadow: 1px 1px 3px #000; box-shadow: 1px 1px 3px #000; } a.close:hover { cursor: pointer; background: #00d9ff; }
He tenido que quitar un monton de lineas de codigo para meterlo.
Si quereis ver todo el codigo aqui lo teneis: [URL="https://github.com/proyecto-kelo/kelo/tree/master/public"]https://github.com/proyecto-kelo/kelo/tree/master/public[/URL]