1

In the following lines (from superfish):

ul.sf-navbar .current ul ul {
    top: -999em;
}

Does top: -999em have a special meaning? Why is the top set to a value that is not visible in the browser?

animuson
  • 53,861
  • 28
  • 137
  • 147
hpn
  • 2,222
  • 2
  • 16
  • 23

3 Answers3

2

That would be so the subnavigation is "hidden" until it's parent is hovered over, then it will be shown.

Damon Bauer
  • 2,718
  • 1
  • 22
  • 35
2

It's purpose is solely to keep any second-tier and higher menus from appearing automatically when the first-tier menu is displayed.

simshaun
  • 21,263
  • 1
  • 57
  • 73
2

I presume this is a drop-down menu that is set beyond the visible bounds using top: -999em; so that it can be changed via javascript/css to appear.

ghoppe
  • 21,452
  • 3
  • 30
  • 21