Team:TU Eindhoven/Template:NavPanel

From 2014.igem.org

(Difference between revisions)
Line 72: Line 72:
     position:absolute;
     position:absolute;
     left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
     left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
 +
}
 +
 +
#nav ul li{
 +
    padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
 +
    float:none;
 +
}
 +
#nav ul a{
 +
    white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
 +
}
 +
#nav li:hover ul{ /* Display the dropdown on hover */
 +
    left:0; /* Bring back on-screen when needed */
}
}
</style>
</style>

Revision as of 11:49, 4 August 2014

TU Eindhoven iGEM