Foros del Web » Creando para Internet » CSS »

[SOLUCIONADO] box-shadow en input type text Ghorome no funciona.

Estas en el tema de box-shadow en input type text Ghorome no funciona. en el foro de CSS en Foros del Web. Buenos dias para todos . e aqui yo con el siguiente problemilla: no me funciona el box-shadow en los input type text en chorome ni ...
  #1 (permalink)  
Antiguo 18/03/2013, 15:21
Avatar de cristo995  
Fecha de Ingreso: noviembre-2012
Mensajes: 187
Antigüedad: 11 años, 5 meses
Puntos: 0
box-shadow en input type text Ghorome no funciona.

Buenos dias para todos . e aqui yo con el siguiente problemilla:

no me funciona el box-shadow en los input type text en chorome ni en Explorer

tengo el siguiente codigo como ejemplo:

<html>
<head>
<style type="text/css">
.efecto{
position:relative;
-webkit-box-shadow:0 0px 4px #777;
-moz-box-shadow:0 0px 4px #777;
box-shadow:0 0px 10px #777;
width:80px;
height:80px;
border-color:1px solid blue;
}
#efecto:focus{
position:relative;
-webkit-box-shadow:0 0px 4px #777;
-moz-box-shadow:0 0px 4px #777;
box-shadow:0 0px 10px #777;
}
</style>
</head>
<body>
<div class="efecto"> </div>div
<input type="text" id="efecto">
</body>
</html>


-Me va de 100% en Mozilla y Opera

pero en Chorome y Internet Explorer Nada.. no funciona el "focus"

agradeceria vuestra ayuda y mas que todo me interesa que sirva en Chorome
aunque no entiendo se supone que con el :

-webkit- box-shadow me deberia ir todo bn pero en estos navegadores NO :(
  #2 (permalink)  
Antiguo 18/03/2013, 15:36
Avatar de falconeta8  
Fecha de Ingreso: mayo-2012
Mensajes: 53
Antigüedad: 11 años, 11 meses
Puntos: 0
Respuesta: box-shadow en input type text Ghorome no funciona.

Prueba
Código CSS:
Ver original
  1. .elemento {
  2.  -webkit-box-shadow: 2px 2px 5px #999;
  3.  -moz-box-shadow: 2px 2px 5px #999;
  4.  filter: progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=4);
  5.  }

Fuente: http://www.psdahtmlpasoapaso.com/blo...os-navegadores .
__________________
System.out.println (“HTML, CSS, PHP, Javascript, C#, Java... De todo !”);
  #3 (permalink)  
Antiguo 18/03/2013, 15:36
Avatar de pzin
Moderata 😈
 
Fecha de Ingreso: julio-2002
Ubicación: Islas Canarias
Mensajes: 10.488
Antigüedad: 21 años, 8 meses
Puntos: 2114
Respuesta: box-shadow en input type text Ghorome no funciona.

Añade alguna declaración para el borde. Por ejemplo:

Código CSS:
Ver original
  1. border: none;

WebKit ya soporta box-shadow sin aditivos.
  #4 (permalink)  
Antiguo 19/03/2013, 07:12
Avatar de cristo995  
Fecha de Ingreso: noviembre-2012
Mensajes: 187
Antigüedad: 11 años, 5 meses
Puntos: 0
Respuesta: box-shadow en input type text Ghorome no funciona.

jo jo jo jo oye muchisimas gracias ahora si funciona como dijiste con ALGUNA declaracion al borde. puse
border:none; y funciona 100%;
y tambien probe con : border 1px solid green; y funciona 100% ; . Ahora ya puedo ver las sombras en los input type text en chorome :)

Lo unico malo es que al parecer Chorome colorea los border por defaul de un color como amarillito al tener el foco (focus): ejem
-buscador google
-formularios con input type text

pero bueno esto se dicimula un 70% con un color de border : border: 1px solid green : :)

repito muchisimas gracias..
  #5 (permalink)  
Antiguo 19/03/2013, 07:33
Avatar de pzin
Moderata 😈
 
Fecha de Ingreso: julio-2002
Ubicación: Islas Canarias
Mensajes: 10.488
Antigüedad: 21 años, 8 meses
Puntos: 2114
Respuesta: box-shadow en input type text Ghorome no funciona.

Es Chrome. Chorome suena a embutido.

Para quitar lo que añade Chrome por defecto, puedes quitar el outline al elemento:

Código CSS:
Ver original
  1. input {
  2.   outline: 0;
  3. }
  #6 (permalink)  
Antiguo 19/03/2013, 09:57
Avatar de cristo995  
Fecha de Ingreso: noviembre-2012
Mensajes: 187
Antigüedad: 11 años, 5 meses
Puntos: 0
Respuesta: box-shadow en input type text Ghorome no funciona.


Etiquetas: html, input, type
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 17:51.