Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

MestreOryon

Problema com menu e banner

Recommended Posts

Galera, tô usando um slider de código aberto (Nivo slider). Implementei um div que contem o menu e o slide, mas o menu possui submenu que esta ficando atrás do slide.

 

 

alguém sabe como eu resolvo ?

 

sou novato em css.

Compartilhar este post


Link para o post
Compartilhar em outros sites

css do menu ....

 

#menu ul ul a{
   color: rgb(50,50,50);
   font-family: Verdana, 'Lucida Grande';
   font-size: 13px;
   background-color: #0F0;
   padding: 5px 8px 7px 16px;
   display: block;
-webkit-transition: background-color .1s;
  -moz-transition: background-color .1s;
    -o-transition: background-color .1s;
       transition: background-color .1s;
}
#menu > ul > li > ul {
   opacity: 0;
   visibility: hidden;
   padding: 16px 0 20px 0;
   background-color: #0F0;
   text-align: left;
   position: absolute;
margin-top:-20px;
left:160px;
   width: 135px;
-webkit-transition: all .3s .1s;
  -moz-transition: all .3s .1s;
    -o-transition: all .3s .1s;
       transition: all .3s .1s;
-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
  -moz-box-shadow: 0px 1px 3px rgba(0,0,0,.4);
       box-shadow: 0px 1px 3px rgba(0,0,0,.4);
}

 

css do slide ...

 

 
/* The Nivo Slider styles */
.nivoSlider {
position:relative;
width:680px;
height:auto;
overflow: hidden;
}
.nivoSlider img {
position:absolute;
top:0px;
left:0px;
max-width: none;
}
.nivo-main-image {
display: block !important;
position: relative !important; 
width: 100% !important;
}

/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:0;
z-index:6;
display:none;
}
/* The slices and boxes in the Slider */
.nivo-slice {
display:block;
position:absolute;
z-index:5;
height:100%;
top:0;
}
.nivo-box {
display:block;
position:absolute;
z-index:5;
overflow:hidden;
}
.nivo-box img { display:block; }

/* Caption styles */
.nivo-caption {
position:absolute;
left:0px;
bottom:0px;
background:#000;
color:#fff;
width:100%;
z-index:8;
padding: 5px 10px;
opacity: 0.8;
overflow: hidden;
display: none;
-moz-opacity: 0.8;
filter:alpha(opacity=8);
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box;    /* Firefox, other Gecko */
box-sizing: border-box;         /* Opera/IE 8+ */
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
   display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:9;
cursor:pointer;
}
.nivo-prevNav {
left:0px;
}
.nivo-nextNav {
right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
text-align:center;
padding: 15px 0;
}
.nivo-controlNav a {
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}


2º parte (tema)

 

.theme-bar.slider-wrapper {
   position: relative;
   border: 1px solid #333;
   overflow: hidden;
}
.theme-bar .nivoSlider {
position:relative;
background:#fff url(loading.gif) no-repeat 50% 50%;
}
.theme-bar .nivoSlider img {
position: absolute;
top:0px;
left:0px;
display:none;
}
.theme-bar .nivoSlider a {
border:0;
display:block;
}

.theme-bar .nivo-controlNav {
   position: absolute;
   left: 0;
   bottom: -41px;
   z-index: 10;
   width: 100%;
   height: 30px;
text-align: center;
padding: 5px 0;
border-top: 1px solid #333;
background: #333;
   background: -moz-linear-gradient(top,  #565656 0%, #333333 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#565656), color-stop(100%,#333333)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top,  #565656 0%,#333333 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top,  #565656 0%,#333333 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(top,  #565656 0%,#333333 100%); /* IE10+ */
   background: linear-gradient(to bottom,  #565656 0%,#333333 100%); /* W3C */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#333333',GradientType=0 ); /* IE6-9 */
   opacity: 0.5;
   -webkit-transition: all 200ms ease-in-out;
   -moz-transition: all 200ms ease-in-out;
   -o-transition: all 200ms ease-in-out;
   transition: all 200ms ease-in-out;
}
.theme-bar:hover .nivo-controlNav {
   bottom: 0;
   opacity: 1;
}
.theme-bar .nivo-controlNav a {
display:inline-block;
width:22px;
height:22px;
background:url(bullets.png) no-repeat;
text-indent:-9999px;
border:0;
margin: 5px 2px 0 2px;
}
.theme-bar .nivo-controlNav a.active {
background-position:0 -22px;
}

.theme-bar .nivo-directionNav a {
display:block;
border:0;
color: #fff;
text-transform: uppercase;
top: auto;
bottom: 10px;
z-index: 11;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 20px;
opacity: 0.5;
   -webkit-transition: all 200ms ease-in-out;
   -moz-transition: all 200ms ease-in-out;
   -o-transition: all 200ms ease-in-out;
   transition: all 200ms ease-in-out;
}
.theme-bar a.nivo-nextNav { right: -50px; }
.theme-bar a.nivo-prevNav { left: -50px; }
.theme-bar:hover a.nivo-nextNav { 
   right: 15px; 
   opacity: 1;
}
.theme-bar:hover a.nivo-prevNav { 
   left: 15px; 
   opacity: 1;
}
.theme-bar .nivo-directionNav a:hover { color: #ddd; }

.theme-bar .nivo-caption {
   font-family: Helvetica, Arial, sans-serif;
   -webkit-transition: all 200ms ease-in-out;
   -moz-transition: all 200ms ease-in-out;
   -o-transition: all 200ms ease-in-out;
   transition: all 200ms ease-in-out;
}
.theme-bar:hover .nivo-caption {
   bottom: 41px;
}
.theme-bar .nivo-caption a {
   color:#fff;
   border-bottom:1px dotted #fff;
}
.theme-bar .nivo-caption a:hover {
   color:#fff;
}

.theme-bar .nivo-controlNav.nivo-thumbs-enabled {
width: 100%;
}
.theme-bar .nivo-controlNav.nivo-thumbs-enabled a {
width: auto;
height: auto;
background: none;
margin-bottom: 5px;
}
.theme-bar .nivo-controlNav.nivo-thumbs-enabled img {
display: block;
width: 120px;
height: auto;
}

Compartilhar este post


Link para o post
Compartilhar em outros sites

Pelo o que eu sei esse z-index define a div como se estivesse em uma "camada", sabe no photoshop quando você trabalha com camadas e fica uma sobre a outra? Então, o z-index define isso, onde quanto menor o número mais atrás essa div fica, nesse caso que o menu fica atrás do slide, com o z-index: 99 diz que o seu menu é praticamente a "camada de cima", assim o seu slide acaba ficando para trás. Acho que deu pra entender mais ou menos né, não sei explicar bem as coisas... :thumbsup:

 

Dá pra entender melhor aqui.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.