html - Dropdown Menu tabs not working on VS2010 -


i tried create dropdown nav tabs 1 of maintabs on homepage, i've used css it. works fine on notepad, not on visual studio master-page file. can please tell me got wrong? stylesheet , code below:

<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css">  #navmenu { margin: 0; padding: 0; }   #navmenu ul {     margin: 0; padding: 0; line-height:40px;     }  #navmenu li  { margin: 0; padding  :0;  list-style:none;  position: relative; float: left; background-color:gray; color:#000;  border-radius:5px;    }  #navmenu ul li  { text-align:center; font-family:tahoma; font-size:9.5pt; text-decoration:none; height:40px; display:block; color:#000; border-right:white thin solid;     }  #navmenu ul ul { position:absolute; visibility:hidden; top:40px; }  #navmenu ul li:hover ul { visibility:visible; }  #navmenu li:hover { background-color:black; color:#fff; }    #navmenu ul li:hover ul li a:hover { background:black; color:white;  }    #navmenu a:hover{ color:#fff }  </style> </head> <body onresize="window.location=window.location;" style="text-align:justify"> <form id="form1" runat="server">            <div>      <table border="0" cellpadding="0" cellspacing="0">     <tr>     <td colspan="5">                         <div id="navmenu">                         <ul>                          <li>                          <a href="~/" style="width:65px">home</a>                                             </li>                                                    <li>                        <a href="~/" style="width:150px">tab1</a>                                                   <ul >                        <li><a href="~/" style="width:150px">subtab1</a>  </li>                        <li><a href="~/" style="width:150px">subtab2</a>  </li>                        <li><a href="~/" style="width:150px">subtab3</a>  </li>                        <li><a href="~/" style="width:150px">subtab4</a>  </li>                        </ul>                        </li>                        <li>                                                                         <a href="~/" style="width:125px">tab2</a>                        </li>                        <li>                        <a href="~/" style="width:95px">tab3</a>                        </li>                        <li>                        <a href="~/" style="width:65px">tab4</a>                        </li>                        <li>                        <a href="~/" style="width:110px">tab5</a>                        </li>                        <li>                         <a href="~/" style="width:165px">tab6</a>                       </li>                       <li>                        <a href="~/" style="width:200px">tab7</a>                         </li>                         </ul>                          </div>         </td>         </tr>    </table>   </div>   </form>   </body>   </html> 

try adding tag below

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -