CSS dropdown nav causing html content to move

后端 未结 2 1504
情歌与酒
情歌与酒 2020-12-17 02:33

my first question on SO, hope it\'s up to scratch, should be a simple solve for somebody well versed in the art of css...

The problem im having is that the dropdown

2条回答
  •  再見小時候
    2020-12-17 02:58

    Updated

    Finally got a chance to take a fresh look at this. All you need is to add the following to #nav li ul:

    position: absolute;
    z-index: 100;
    

    Works in IE8/9, FF and Chrome, though the positioning of the sub menu is off in IE7, with or without my change. To fix that I recommend IE7 specific CSS through whatever method you prefer.

提交回复
热议问题