Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Francois Marceau
CSS drop down menu bug
20 luglio 2009 8.12
Risposta

Francois Marceau

Punteggio: New Member

Messaggi: 12

Data di Iscrizione: 26 maggio 2009

Messaggi recenti

Hello everyone,

I have a strange bug in my css drop down menu.

On firefox, everything is fine. The problem comes on internet explorer. If my page dosen't have any content, the menu work very well. If I add any content, the bug start. I can reach the first child of my menu, but as soon as I put my mouse on the second child the menu disapear. It seams like the portlet get in front of the drop down menu for some reasons..

Here's my CSS's :

#navigation .child-menu {
background:url(../images/custom/navigation_up_bg.png);
height: auto;
overflow: visible;
position: absolute;
top: 25px;
width: 209px;
z-index: 79;
}


.ie #navigation .child-menu{
position:absolute;
left:0px;
top:25px;
margin:0px;
padding:0px;
}

.ie #navigation .child-menu {
height: auto;
}

.ie6 #navigation .child-menu {
height: 1%;
}

#navigation .child-menu ul {
height: auto;
padding-bottom: 2px;
}

#navigation .child-menu ul,
#navigation .child-menu li,
#navigation .child-menu a {
background: transparent none;
}


#navigation .child-menu ul,
#navigation .child-menu li {
float: none;
}

#navigation .child-menu li {
border: none;
display: block;
}

#navigation .child-menu li a {
coloremoticonFFFFFF;
display: block;
padding: 10 20px;
width: auto;
margin-top:-1.5px;

}

#navigation .child-menu a:hover {
background:url(../images/custom/navigation_hover_bg.png);
width:125px;
border:1px solid black;
coloremoticonfff
}

#navigation li:hover ul, #navigation li li:hover ul, #navigation li li li:hover ul, #navigation li li li li:hover ul{
display:block;
width:150px;
}


Thanks everyone !
whyBish valid
RE: CSS drop down menu bug
20 luglio 2009 18.48
Risposta

whyBish valid

Punteggio: Junior Member

Messaggi: 63

Data di Iscrizione: 9 luglio 2009

Messaggi recenti

I think your z-index is too low. I have seen liferay using values of at least 200.
Francois Marceau
RE: CSS drop down menu bug
21 luglio 2009 5.29
Risposta

Francois Marceau

Punteggio: New Member

Messaggi: 12

Data di Iscrizione: 26 maggio 2009

Messaggi recenti

That's what I tought first but it's actualy working on Firefox so it's not a z-index prob :s
Francois Marceau
RE: CSS drop down menu bug
21 luglio 2009 6.36
Risposta

Francois Marceau

Punteggio: New Member

Messaggi: 12

Data di Iscrizione: 26 maggio 2009

Messaggi recenti

Fixed !

.ie #navigation {
position:relative;
z-index:9997;
}

Thanks google !
raja krish
RE: CSS drop down menu bug
5 ottobre 2009 6.19
Risposta

raja krish

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 1 settembre 2009

Messaggi recenti

hi,

just include the below code in custom.css file
then it will work fine

.ie #navigation .child-menu {
zoom:1;
}


For any help feel free to contact me,

Raja
Hasan Jr. Basan
RE: CSS drop down menu bug
4 novembre 2009 1.28
Risposta

Hasan Jr. Basan

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 30 ottobre 2009

Messaggi recenti

i have the same problem and suggested solutions do not work for me. I can not access the elements at the bottom of the menu in internet explorer 8. do you have any ideas?
whyBish valid
RE: CSS drop down menu bug
4 novembre 2009 11.32
Risposta

whyBish valid

Punteggio: Junior Member

Messaggi: 63

Data di Iscrizione: 9 luglio 2009

Messaggi recenti

Hello,
Is your problem also occuring in firefox?. If so, use firebug to change z-order etc. until you find the problem. If it is only a problem in ie, then you could try using the web developer tools (I think they are built into ie8?).
If that doesn't help, try cutting down thee html/css into a small self contianed illustration of the example, and post the html/css.
Good luck.
Hasan Jr. Basan
RE: CSS drop down menu bug
6 novembre 2009 1.47
Risposta

Hasan Jr. Basan

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 30 ottobre 2009

Messaggi recenti

sorry for the late reply. menu works fine in firefox and i have already assigned z-index values to the html entities. i see the z-index values when i inspect the html file with developer tool bar in ie8.

as i know drop down menus coded as lists using <ul> and <li> have this problem in internet explorer. the way i deal with error is using javascript on hovers or onmuseover/onmouseout events.

does anybody know another way to do this in liferay, or any suggestions.

Thanks.
whyBish valid
RE: CSS drop down menu bug
6 novembre 2009 1.57
Risposta

whyBish valid

Punteggio: Junior Member

Messaggi: 63

Data di Iscrizione: 9 luglio 2009

Messaggi recenti

If you know how to fix it with javascript then you can make yourself a custom theme in the SDK. change the navigation.vm in the custom theme to have the javascript you use.
Maarten van Heiningen
RE: CSS drop down menu bug
11 gennaio 2010 7.07
Risposta

Maarten van Heiningen

Punteggio: Regular Member

Messaggi: 170

Data di Iscrizione: 5 febbraio 2009

Messaggi recenti

Hello Hasan,

I came across a simular problem. I fixed it by setting a new zindex with jQuery in the document.ready fase.

You can do something like this in your javascript.js of your theme:

function setNewZIndexNavigation()
{
var zIndexNumberNav = 9990;
jQuery('div#navigation li').each(function() {
jQuery(this).css('zIndex', zIndexNumberNav);
zIndexNumberNav -= 5;
});
}

jQuery(document).ready(
function() {
setNewZIndexNavigation();
}
);


You reindex the navigation structure by doing this. It should work for all browsers.

Good Luck,
Maarten
Pantheon Automatisering
Hasan Jr. Basan
RE: CSS drop down menu bug
1 dicembre 2009 7.28
Risposta

Hasan Jr. Basan

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 30 ottobre 2009

Messaggi recenti

thanks Marten. Your code works ok as i tried.
P K
RE: CSS drop down menu bug
11 maggio 2010 5.43
Risposta

P K

Punteggio: New Member

Messaggi: 4

Data di Iscrizione: 15 aprile 2010

Messaggi recenti

hi Marten, I am also facing the same problem with IE7. The drop down menu hides behind the
form elements and disappears when the menu item is tried to be select.

I could not understand how to use your code in javascript.js. Whether the complete
code is to be put in javascript.js Or the following partial code to be inserted in some other file.

jQuery(document).ready(
function() {
setNewZIndexNavigation();
}
);
Milan Palian
RE: CSS drop down menu bug
13 aprile 2011 12.56
Risposta

Milan Palian

Punteggio: Junior Member

Messaggi: 41

Data di Iscrizione: 10 dicembre 2009

Messaggi recenti

I have a similar problem, playing around with the classic theme in 6.0.5. - in all browsers.

I tried increasing z-index of:

#navigation .child-menu
#navigation .child-menu li
#navigation .child-menu li a

Because the navigation drop down menu is underneath the tabs in the portlets.

But in the debugger, z-index for "#navigation .child-menu li a" still shows as "auto". As a result ".aui-tab-active" in portlet menus falls over the navigation drop-down menus.

Any suggestions?
Milan Palian
RE: CSS drop down menu bug
4 giugno 2011 1.42
Risposta

Milan Palian

Punteggio: Junior Member

Messaggi: 41

Data di Iscrizione: 10 dicembre 2009

Messaggi recenti

Francois Marceau:

.ie #navigation {
position:relative;
z-index:9997;
}


That worked for me too.


#navigation {
position:relative;
z-index:9997;
}