Ancho de entrada para ser 100% - 20px
Frecuentes
Visto 443 veces
0
I know this isn't possible but I am wondering if there is any other way of achieving the effect.
If you look at the jsfiddle below you will see that the input is 94% of the container and centered, this works OK but what I really want is for the input to have a 10px margin on each side.
http://jsfiddle.net/brendan_rice/4ugxk/13/
¿Alguien puede ayudar por favor?
4 Respuestas
3
Prueba esta http://jsfiddle.net/hRrVv/
Respondido 28 ago 12, 13:08
1
tal vez intente algo como eso http://jsfiddle.net/4ugxk/24/ if it's ok
.bottom{
position: absolute;
bottom: 0;
left:0; right:0;
margin-left:10px;
margin-right:10px;
}
Respondido 28 ago 12, 13:08
0
You could put a wrapping span (or div) around the input element and use that to apply the margin you want. You'd need to remove the default styling from the standard input box (padding, border etc.) and style this wrapping element as you want the input to appear.
Respondido 28 ago 12, 13:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas html css yui or haz tu propia pregunta.