z-index will only work with elements that are positioned, so try adding "position:relative;" after where you've put the z-index in your code. It should be in both the inline CSS for the table underneath and the div on top. You may also need to specify the left and top attributes for the div if the positioning gets funky.