height:100% means 100% of the parent height. Since you haven’t given height to parent of ul i.e body the code will not work. You need to add the following css
html,body{
height: 100%;
min-height:100%;
}
0
solved how to create a vertical menu in html/css [closed]