Expand|Select|Wrap|Line Numbers
- #nav {
- position: absolute;
- top: 101px;
- left: 390px;
- list-style: none;
- margin: 0;
- padding: 0;
- height: 28px;
- display: inline;
- overflow: hidden;
- width: 603px;
- background: url(Html/Img/site/menu/navbar.gif)
- }
- #nav li {
- position:relative;
- float:left;
- margin: 0;
- padding: 0;
- display: inline;
- overflow: hidden;
- list-style-type: none;
- }
- #nav a {
- float: left;
- padding: 28px 0 0 0;
- overflow: hidden;
- height: 0px !important; height /**/:20px; /* for IE5/Win */
- }
- #nav a:hover {
- background-position: 0 -28px;
- }
- #nav a:active, #nav a.selected {
- background-position: 0 -56px;
- }
- #hjem a {
- width: 58px;
- background: url(Html/Img/site/menu/hjem.gif) top left no-repeat;
- }
- #hjelp a {
- width: 107px;
- background: url(Html/Img/site/menu/hjelp.gif) top left no-repeat;
- }
- #brukerveil a {
- width: 140px;
- background: url(Html/Img/site/menu/brukerveil.gif) top left no-repeat;
- }
- #e-learn a {
- width: 126px;
- background: url(Html/Img/site/menu/e-learn.gif) top left no-repeat;
- }
- #forum a {
- width: 65px;
- background: url(Html/Img/site/menu/forum.gif) top left no-repeat;
- }
- #kontakt a {
- width: 96px;
- background: url(Html/Img/site/menu/kontakt.gif) top left no-repeat;}
- .leftmenu_wrap {
- float: left;
- }
Expand|Select|Wrap|Line Numbers
- <ul id="nav">
- <li id="hjem"><a href="#"></a></li>
- <li id="hjelp"><a href="#"></a></li>
- <li id="brukerveil"><a href="#"></a></li>
- <li id="e-learn"><a href="#"></a></li>
- <li id="forum"><a href="#"></a></li>
- <li id="kontakt"><a href="#"></a> </li></ul>
- </div>
And now I'm trying to merge these together the best way I can, but I don't understand anything.. The ASP menu in the link posted above is based on tables and not css! So how can I do the same thing only with my own menu?
Would someone care to explain or perhaps copy and paste a little to perhaps create a working example? Shouldn't be that hard should it? I just can't wrap my head around the html table codes in the ASP-files cause each entry in the menu has it's own asp-file and the menu gets sorta compiled from each of these files and with another file where the rest of the menu lies (include/common.asp).