css - Adding a drop down horizontal menu to the ASP.NET MVC 2 template -


I see a menu and want to add the operation to the same thing I am not using HTML5 and I do not use CSS3 I am here. Besides, I am a CSS N & A and really do not understand what each tag does (or can do), so I think I'm dipping here to understand what I am doing. I am looking for an example that what I want to do and there is no luck beyond the link given above.

This is the "standard" ASP.NET MVC 2 template. We really like to look for our internal applications but the menu is something that needs help so far.

Even I have worked so far:

 Current menu

HTML:

  & lt; Div id = "menucontainer" & gt; & Lt; Ul id = "menu" & gt; & Lt; Li & gt; & Lt;% = Html .nationlink ("home", "index", "home")%> & Lt; / Li & gt; & Lt; Li & gt; & Lt;% = HTMLActionLink ("Timesheets Sign In", "Index", "Timesheets")% & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt;% = Html.ActionLink ("Skip Request", "Index", "LiverAcext")%> & Lt; Ul & gt; & Lt; Li & gt; & Lt;% = Html.ActionLink ("new leave request", "create", "leave request")% & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt;% = Html.ActionLink ("Skip History of Requests", "History", "LiverQuest")%> & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt;% - & lt; Li & gt; & Lt;% = Html Keywords ("about", "about", "home")% & gt; & Lt; / Li & gt; -% & gt; & Lt; Li & gt; & Lt; A href = "#" target = "_ blank" & gt; Navilin & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt;% = Html .nationlink ("Help", "Help", "Home")% & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;   

CSS: / * Tab Menu ----------------------- ----------------------------------- * / ul #Menu {border-bottom: 1px # 5C87B2 solid ; Padding: 0 2 2px; Status: Relative; Margin: 0; Text align: right; } Ul # menu li {display: inline; List style: none; } Ul # menu li # greeting {padding: 10px 20px; font-weight: bold; Text-decoration: None; Line-height: 2.8 m; Color: #fff; } Ul # menu li a {padding: 10px 20px; font-weight: bold; Text-decoration: None; Line-height: 2.8 m; Background-color: # e8eef4; Color: # 034af3; } Ul # menu li a: hover {background-color: #fff; Text-decoration: None; } Ul # menu li: Hover UL {display: block; } Ul # menu li a: active {background color: # a6e2a6; Text-decoration: None; } Ul # menu li.selected {background-color: #fff; Color: # 000; } Ul # menu li ul {status: absolute; Correct: 0 pixels; Top: 34px; display none; }

Minor tweaks are needed just reference #menucontainer Instead of HTML markup of nav in the blog post, you will need to adjust the stylesheet context twice and "Body #menucontainer li"). Each (function () {.

it helps.

Comments