Difference between revisions of "Team:NYMU-Taipei/css-test"

Line 23: Line 23:
 
}
 
}
  
.menu_item {
+
.dropdown {
 
padding-top:20px;
 
padding-top:20px;
 
     position: relative;
 
     position: relative;
Line 31: Line 31:
 
}
 
}
  
.submenu {
+
.dropdown-content {
 
     display: none;
 
     display: none;
 
     position: absolute;
 
     position: absolute;
Line 41: Line 41:
 
}
 
}
  
.menu_item:hover .submenu {
+
.dropdown:hover .submenu {
 
     display: block;
 
     display: block;
 
}
 
}

Revision as of 12:08, 28 May 2018

.extra_space{ display:none; }

.igem_2018_team_column_wrapper{ width:1440px; }

.igem_2018_team_content { background-color:white; display:block; width: 100%; } .igem_2018_team_menu.displaying_menu{ display:none; }

.nymu_menu{ height: 50px; background-color: white; box-shadow: 0 10px 20px -5px gray; width:1440px; }

.dropdown { padding-top:20px;

   position: relative;
   display: inline-block;

width:150px; text-align:center; }

.dropdown-content {

   display: none;
   position: absolute;
   background-color: #f9f9f9;
   min-width: 160px;
   box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
   padding: 12px 16px;
   z-index: 1;

}

.dropdown:hover .submenu {

   display: block;

}