427 posts
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 4-5 years
  • Mexico
  • Referred between 10 and 49 users
  • Repeatedly helped protect Envato Market against copyright violations
+1 more
agodesa says

But when I apply the padding-top, one part of sub nav is on the very front and I don’t like that.

1. Cuando trato de pasar del menu al submenu, el submenu desaparece.

http://www.youtube.com/watch?v=Tp_nZE_Hd3c

2. ¿Hay alguna forma de que un “div” con posicionamiento de “absolute” se pueda poner en frente de algún otro “div”, y al reves (o sea, que se vaya para atras)?

Thanks, CROZER .

2214 posts
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Germany
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+5 more
crozer says

But when I apply the padding-top, one part of sub nav is on the very front and I don’t like that.

1. Cuando trato de pasar del menu al submenu, el submenu desaparece.

http://www.youtube.com/watch?v=Tp_nZE_Hd3c

2. ¿Hay alguna forma de que un “div” con posicionamiento de “absolute” se pueda poner en frente de algún otro “div”, y al reves (o sea, que se vaya para atras)?

Thanks, CROZER .

Lo que sucede es que el margin es como un ‘espacio en blanco’, por eso cuando tu mouse sale de la superficie del link y entra a este espacio en blanco del margin, tu sub-menu desaparece. El padding en cambio no es un espacio en blanco.

Sin embargo, viendo el código de tu sub-menu, te recomendaría que uses este o este.

2. Si, debes usar z-index, Por ejemplo, quieres que el elemento A esté encima del elemento B. Entonces haces A { z-index: 2; } y B { z-index: 1; }. Y si después quieres añadir un elemento C que vaya encima de todos, y un elemento D que esté debajo de todos, haces C { z-index: 3; } y D { z-index: 0; }. Básicamente en cuanto mayor el número del z-index, más arriba va el elemento.

Suerte,
Chris

962 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Ireland
  • Sold between 10 000 and 50 000 dollars
EireStudio says

The forums is for English speaking only as we all can understand what is being said :)

2214 posts
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Germany
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+5 more
crozer says

The forums is for English speaking only as we all can understand what is being said :)

Sorry, but it’s much more efficient to explain something to someone in his/her native language.

by
by
by
by
by
by