427 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+6 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 .

2256 posts Digital Artist
  • Had an item featured in a magazine
  • Became a Top 20 Author of the Month
  • Had an item that was trending
  • Had an item that became a weekly top seller
+15 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

970 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
EireStudio
says

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

2256 posts Digital Artist
  • Had an item featured in a magazine
  • Became a Top 20 Author of the Month
  • Had an item that was trending
  • Had an item that became a weekly top seller
+15 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