Menu problem in Firefox but working in ie7
Posted: 26 March 2009 12:31 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2009-03-26

Hi there,

I am new here on this site… I got a problem with a menu working fine in ie7 but breaking up in Firefox… this is my first CSS website so I would call me begginer level and I have tried to find all the problems in here but I just cant find it. I am sure it is something very simple I missed… But I feel I cant do this my self and go to the experts on this forum and ask if any one know what to do.

.nav {
height
:20px
position:relative
font-family:arialverdanasans-serif
font-size:11px
width:1200px;
z-index:500;
}
.nav li 
{
    display
:block
    
float:left
    
margin:-20px -1px 0;
}
.nav .table {
display
:table
margin:0 auto;
}

.nav .select,
.
nav .current {
margin
:0
padding:-20px -1px 0;
list-
style:none
display:table-cell;
white-space:nowrap;
}

.nav .select a {
display
:block
height:35px
float:left
backgroundurl(../Images/Menu/transperent.gif);
padding:-20px -1px 0;
text-decoration:none
line-height:20px
white-space:nowrap
color:#ddd;
}
.nav .current a {
display
:block
height:35px
float:left
backgroundurl(../Images/Menu/transperent.gif);
padding:-20px -1px 0;
text-decoration:none
line-height:20px
white-space:nowrap
color:#fff;
}
.nav .current a b {
display
:block
padding:-20px 0 -20px
}
.nav .select a:hover
.
nav .select li:hover
.nav .select li li:hover a {
padding
:-20 0 -20px;
cursor:pointer
color:#fff;
}
.nav .select a:hover b
.
nav .select li:hover a b
.nav .select li li:hover {
display
:block
float:left
padding:-20px 0 -20px;
background:url(../Images/Menu/transperent.gifright top;
cursor:hand;
}
.nav .select_sub {
display
:none;
}
/* Bilder för menyn */
.nav li a b.p1 
{
    display
:block
    
width:20px
    
height:19px
    
background:url(../Images/Menu/l_dgreen_tm.png); 
    
float:left;
}
.nav li a b.p2 
{
    display
:block
    
height:19px
    
padding:0 0px
    
background:url(../Images/Menu/m_dgreen_tm.pngrepeat-x
    
float:left;
    
text-align:center
    
line-height:18px
    
color:#000; 
    
font-weight:normal
    
font-family:verdana
    
font-size:11px;
}
.nav li a b.p3 
{
    display
:block
    
width:20px
    
height:19px
    
background:url(../Images/Menu/r_dgreen_tm.png); 
    
float:left;
    
position:relative
    
z-index:100;
}
.nav li a:hover, .nav li a:focus
{
    border
:0
    
z-index:600;
}
.nav li a:hover b.p1, .nav li a:focus b.p1
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/l_lgreen_tm.png); 
    
cursor:pointer;
}
.nav li a:hover b.p2, .nav li a:focus b.p2
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/m_lgreen_tm.pngrepeat-x
    
color:#040; 
    
cursor:pointer;
}
.nav li a:hover b.p3, .nav li a:focus b.p3
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/r_lgreen_tm.png); 
    
cursor:pointer;
}
.nav li a.current 
{
    border
:0;
    
z-index:1000;
}
.nav li a.current b.p1, .nav li a:hover.current b.p1, .nav li a:active.current b.p1
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/l_black_tm.png); 
    
cursor:default;
}
.nav li a.current b.p2, .nav li a:hover.current b.p2, .nav li a:active.current b.p2
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/m_black_tm.pngrepeat-x
    
color:#fff; 
    
cursor:default;
}
.nav li a.current b.p3, .nav li a:hover.current b.p3, .nav li a:active.current b.p3
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/r_black_tm.png); 
    
cursor:default;
}

/* bilder till submeny */


.nav li li a b.p1 
{
    display
:block
    
width:20px
    
height:19px
    
background:url(../Images/Menu/l_lgreen_tm.png); 
    
float:left;
}
.nav li li a b.p2 
{
    display
:block
    
height:19px
    
padding:0 0px
    
background:url(../Images/Menu/m_lgreen_tm.pngrepeat-x
    
float:left;
    
text-align:center
    
line-height:18px
    
color:#000; 
    
font-weight:normal
    
font-family:verdana
    
font-size:11px;
}
.nav li li a b.p3 
{
    display
:block
    
width:20px
    
height:19px
    
background:url(../Images/Menu/r_lgreen_tm.png); 
    
float:left;
    
position:relative
    
z-index:100;
}
.nav li li a:hover, .nav li li a:focus, .nav li li a:active
{
    border
:0
    
z-index:700;
}
.nav li li a:hover b.p1, .nav li li a:focus b.p1, .nav li li a:active b.p1
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/l_dgreen_tm.png); 
    
cursor:pointer;
}
.nav li li a:hover b.p2, .nav li li a:focus b.p2, .nav li li a:active b.p2
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/m_dgreen_tm.pngrepeat-x
    
color:#040; 
    
cursor:pointer;
}
.nav li li a:hover b.p3, .nav li li a:focus b.p3, .nav li li a:active b.p3
{
    position
:relative
    
z-index:100
    
background:url(../Images/Menu/r_dgreen_tm.png); 
    
cursor:pointer;
}
.nav li li a.selected 
{
    z
-index:800;
}
.nav li li a.selected b.p1, .nav li li a:hover.selected b.p1, .nav li li a:active.selected b.p1
{
    position
:relative
    
z-index:200
    
background:url(../Images/Menu/l_black_tm.png); 
    
cursor:default;
}
.nav li li a.selected b.p2, .nav li li a:hover.selected b.p2, .nav li li a:active.selected b.p2
{
    position
:relativez-index:200
    
background:url(../Images/Menu/m_black_tm.pngrepeat-x
    
color:#fff; 
    
cursor:default;
}
.nav li li a.selected b.p3, .nav li li a:hover.selected b.p3, .nav li li a:active.selected b.p3
{
    position
:relative
    
z-index:200
    
background:url(../Images/Menu/r_black_tm.png); 
    
cursor:default;

Hope some one got an ide, se the menu http://www.spelbiblioteket.se

Profile
 
 
Posted: 26 March 2009 01:41 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2009-03-26

This is the HTML for the menu:

<div class="table">

<
ul class="current"><li><a href="Default.aspx" class="current"><class="p1"></b>
            <
class="p2">Hem</b>
            <
class="p3"></b>
</
a></li></ul>

<
ul class="select"><li><a href="#nogo"><class="p1"></b>
            <
class="p2">Allt om spel</b>
            <
class="p3"></b><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
<
div class="select_sub">
    <
ul class="select">
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Recensioner</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Spelnyheter</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Artiklar</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Releaselista</b>
            <
class="p3"></b></a></li>
            <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Demo och beta</b>
            <
class="p3"></b></a></li>
            <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Medlemspel</b>
            <
class="p3"></b></a></li>
            <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Filarkiv</b>
            <
class="p3"></b></a></li>
            <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Arkiv</b>
            <
class="p3"></b></a></li>
    </
ul>
</
div>
<!--
[if lte IE 6]></td></tr></table></a><![endif]-->
</
li>
</
ul>

<
ul class="select"><li><a href="#nogo"><class="p1"></b>
            <
class="p2">Testa Spel</b>
            <
class="p3"></b><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
<
div class="select_sub">
    <
ul class="select">
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Om testningen</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Bilda testgrupp</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Bilda förening</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Sök testgrupp</b>
            <
class="p3"></b></a></li>
    </
ul>
</
div>
<!--
[if lte IE 6]></td></tr></table></a><![endif]-->
</
li>
</
ul>


<
ul class="select"><li><a href="#nogo"><class="p1"></b>
            <
class="p2">Medlemskap</b>
            <
class="p3"></b><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
<
div class="select_sub">
    <
ul class="select">
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Bli medlem</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Community</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Ideelt arbete</b>
            <
class="p3"></b></a></li>
        
    </
ul>
</
div>
<!--
[if lte IE 6]></td></tr></table></a><![endif]-->
</
li>
</
ul>

<
ul class="select"><li><a href="#nogo"><class="p1"></b>
            <
class="p2">Utbildningar</b>
            <
class="p3"></b><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
<
div class="select_sub">
    <
ul class="select">
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Våra utbildningar</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Kommande utbildningar</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Intresseanmälan</b>
            <
class="p3"></b></a></li>
        
    </
ul>
</
div>
<!--
[if lte IE 6]></td></tr></table></a><![endif]-->
</
li>
</
ul>
<
ul class="select"><li><a href="#nogo"><class="p1"></b>
            <
class="p2">Projekt</b>
            <
class="p3"></b><!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
<
div class="select_sub">
    <
ul class="select">
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Pågående projekt</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Nyheter</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Kalendarium</b>
            <
class="p3"></b></a></li>
        <
li><a href="#nogo"><class="p1"></b>
            <
class="p2">Avslutade project</b>
            <
class="p3"></b></a></li>
        
    </
ul>
</
div>
<!--
[if lte IE 6]></td></tr></table></a><![endif]-->
</
li>
</
ul
Profile
 
 
Posted: 21 December 2010 05:02 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2010-12-14

Hey thnx,but it would have been useful if u have explained the classes

Profile