html - Menu and submenus not showing on Internet Explorer -


i working on menu looks this:

<nav> <ul>     <li><a href="index.php">home</a></li>      <li><a href="#">expenses</a>         <ul>             <li><a href="view.php">view expenses</a></li>                 <li><a href="employeeexpense.php">view expenses</a></li>                  <li> <a href="#">view deconts </a>                 <ul>                     <li><a href="viewalldecont.php">single deconts</a></li>                                                      <li><a href="viewdecontsforall.php">view deconts</a></li>                 </ul>             </li>                <li> <a href="#">add expenses </a>                 <ul>                     <li><a href="soccer.php">soccer/tennis expenses</a></li>                     <li><a href="gym.php">gym expenses</a></li>                     <li><a href="coffeetea.php">coffee/tea expense</a></li>                  </ul>             </li>     </li>                </ul> 

it works on chrome , firefox, not work on ie.

the navigation css looks this:

nav {    text-align: center; }  nav ul ul {     display: none;       }  nav ul li:hover > ul {     display: block;     }  nav ul {     background: #efefef;      background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);       background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);      background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);      box-shadow: 0px 0px 9px rgba(0,0,0,0.15);     padding: 0 20px;     border-radius: 10px;       list-style: none;     position: relative;     display: inline-table;     z-index: 9999;  } nav ul:after {     content: ""; clear: both; display: block; }  nav ul li {     float: left; }     nav ul li:hover {         background: #4b545f;         background: linear-gradient(top, #4f5964 0%, #5f6975 40%);         background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);         background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);     }         nav ul li:hover {             color: #fff;         }      nav ul li {         display: block; padding: 10px 40px;         color: #757575; text-decoration: none;     }   nav ul ul {     background: #5f6975; border-radius: 0px; padding: 0;     position: absolute; top: 100%; }     nav ul ul li {         float: none;          border-top: 1px solid #6b727c;         border-bottom: 1px solid #575f6a; position: relative;     }         nav ul ul li {             padding: 15px 40px;             color: #fff;         }                nav ul ul li a:hover {                 background: #4b545f;             }  nav ul ul ul {     position: absolute; left: 100%; top:0; } 

am using deprecated functions ? know -moz- tag works mozilla firefox , -webkit- works chrome, worked. must have updated ie or something. using ie 9.

two things noticed.

1.) code looks fine except lack of ending tag. have been copy paste issue.

2.) ie8 , prior not work nav tag. have verified running in ie9 mode? open developer tools make sure (f12) in ie. make sure both document , browser mode not in compability mode , set ie9 or whatever current version @ moment.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -