Dropdown not working in FF

Discussion in 'CSS' started by Cozmic, Jul 26, 2010.

  1. #1
    I have this CSS:

    
    .master {
    
    }
    
    .slave {
    	display:none;
    }
    .master:hover {
    	background-color:white;
    	padding:5px;
    	-moz-border-radius:5px;
    	-webkit-border-radius:5px;
    	border-left:2px solid gray;
    	border-right:2px solid gray;
    	border-top:2px solid gray;
    	z-index:2;
    }
    
    .master:hover .slave {
    	display:block;
    	position:absolute;
    	-moz-border-radius:5px;
    	-webkit-border-radius:5px;
    	border:2px solid gray;
    	background-color:white;
    	z-index:1;
    }
    
    Code (markup):
    And this HTML

    <span class='master'>Hover me<span class='slave'>to show some text</span></span>
    HTML:
    Why does this not work in firefox only? When I hover over master in FF or IE nothing happens at all. It works in Google Chrome though.
     
    Cozmic, Jul 26, 2010 IP
  2. Cozmic

    Cozmic Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #2
    Woops, looks like it was an issue with the doctype. Never mind. I changed the doctype and it works now.
     
    Cozmic, Jul 27, 2010 IP