Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/03/2015, 05:03
jurassicboy
 
Fecha de Ingreso: agosto-2009
Mensajes: 91
Antigüedad: 14 años, 9 meses
Puntos: 2
Respuesta: Referenciar a un div dentro de un div dentro de...

Muchas gracias a todos por vuestras respuestas, perdonad que no me haya podido poner de nuevo hasta ahora. Detecté de donde proviene el error pero no he podido solucionarlo, ahora puedo ser más específico y deciros que el problema viene de que <section class="tabs"> tiene el siguiente estilo:

Código HTML:
Ver original
  1. .tabs input {
  2.     position: absolute;
  3.     z-index: 1000;
  4.     width: 120px;
  5.     height: 40px;
  6.     left: 0px;
  7.     top: 0px;
  8.     opacity: 0;
  9.     -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  10.     filter: alpha(opacity=0);
  11.     cursor: pointer;
  12. }

Ese estilo que se utiliza para los inputs de selección de las pestañas está provocando que el estilo del resto de inputs (que son los siguientes) se vean afectados.


Código HTML:
 input#submit{
    cursor:pointer; /*forces the cursor to change to a hand when the button is hovered*/
    padding:5px 25px; /*add some padding to the inside of the button*/
    background:#35b128; /*the colour of the button*/
    border:1px solid #33842a; /*required or the default border for the browser will appear*/
    /*give the button curved corners, alter the size as required*/
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    /*give the button a drop shadow*/
    -webkit-box-shadow: 0 0 4px rgba(0,0,0, .75);
    -moz-box-shadow: 0 0 4px rgba(0,0,0, .75);
    box-shadow: 0 0 4px rgba(0,0,0, .75);
    /*style the text*/
    color:#f3f3f3;
    font-size:1.1em;
    }
    /***NOW STYLE THE BUTTON'S HOVER AND FOCUS STATES***/
    input#submit:hover, input#submit:focus{
    background-color :#399630; /*make the background a little darker*/
    /*reduce the drop shadow size to give a pushed button effect*/
    -webkit-box-shadow: 0 0 1px rgba(0,0,0, .75);
    -moz-box-shadow: 0 0 1px rgba(0,0,0, .75);
    box-shadow: 0 0 1px rgba(0,0,0, .75);
    }
   
 
    input#browsebutton {
    border:2px groove #7c93ba;
    cursor:pointer; /*forces the cursor to change to a hand when the button is hovered*/
    padding: 5px 25px;
    /*give the background a gradient - see cssdemos.tupence.co.uk/gradients.htm for more info*/
    background-color:#6b6dbb; /*required for browsers that don't support gradients*/
    background: -webkit-gradient(linear, left top, left bottom, from(#88add7), to(#6b6dbb));
    background: -webkit-linear-gradient(top, #88add7, #6b6dbb);
    background: -moz-linear-gradient(top, #88add7, #6b6dbb);
    background: -o-linear-gradient(top, #88add7, #6b6dbb);
    background: linear-gradient(top, #88add7, #6b6dbb);
    /*style to the text inside the button*/
    font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
    color:#fff;
    font-size:1.1em;
    letter-spacing:.1em;
    font-variant:small-caps;
    /*give the corners a small curve*/
    -webkit-border-radius: 0 15px 15px 0;
    -moz-border-radius: 0 15px 15px 0;
    border-radius: 0 15px 15px 0;
    /*add a drop shadow to the button*/
    -webkit-box-shadow: rgba(0, 0, 0, .75) 0 2px 6px;
    -moz-box-shadow: rgba(0, 0, 0, .75) 0 2px 6px;
    box-shadow: rgba(0, 0, 0, .75) 0 2px 6px;
    }
    /***NOW STYLE THE BUTTON'S HOVER AND FOCUS STATES***/
    input#browsebutton:hover, input#browsebutton:focus {
    color:#edebda;
    /*reduce the spread of the shadow to give a pushed effect*/
    -webkit-box-shadow: rgba(0, 0, 0, .25) 0 1px 0px;
    -moz-box-shadow: rgba(0, 0, 0, .25) 0 1px 0px;
    box-shadow: rgba(0, 0, 0, .25) 0 1px 0px;
    }

Muchas gracias de nuevo, de verdad!!


EDITO: No hay manera. ¿Como puedo indicarle que input#submit e input#browsebutton no pillen los estilos de ".tabs input"? Sí, ellos están incluídos dentro de la sección <section class="tabs"> pero.. ¿no hay manera de decirle que esos inputs no me tomen el estilo de tabs? Gracias de nuevo!

Última edición por jurassicboy; 23/03/2015 a las 06:49