I currently have CSS and JavaScript implemented in my HTML code to create a dropdown menu. It is functional on Chrome and Firefox, but unfortunately not working on Internet Explorer. I am looking for a solution to make the drop down bar compatible with Internet Explorer.
Below is my CSS code:
<body bgcolor='#52CC7A'>
<style type="text/css">
* { padding: 0; margin: 0; }
body { padding: 5px; font-family: Arial, Helvetica, sans-serif; }
ul { list-style: none; z-index: 999 }
ul li { float: left; padding-right: 1px; position: relative; }
ul a { display: table-cell; vertical-align: middle; width: 100px; height: 50px; text-align: center; background: #69C; color: #FFF; text-decoration: none; }
ul a:hover { background: #09C; }
li > ul { display: none; position: absolute; left: 0; top: 100%; }
li:hover > ul { display: block; }
li > ul li { padding: 0; padding-top: 1px; }
li > ul li > ul { left: 100%; top: 0; padding-left: 1px; }
li > ul li > ul li { width: 100px; }
li:hover > a { background: #09C; }
</style>
And here is my HTML code:
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Players</a>
<ul>
<li><a href="#">#</a></li>
<li><a href="#">#</a></li>
<li><a href="#">#</a></li>
This is just a simplified version of the code structure. Any suggestions or modifications to ensure compatibility with Internet Explorer would be greatly appreciated. Thanks :)