Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2008
    Messaggi
    35

    problema con menu.... aiuto

    non rieso a capire il perchè non riesco a visualizzare il mio menù in orizzontale
    ecco il codice
    CSS

    body {
    font: normal 11px verdana;
    }

    ul {
    margin: -2;
    padding: -2;
    list-style: none;
    width: 200px; /* Width of Menu Items */
    border-bottom: 0px solid #ccc;
    }

    ul li {
    position: relative;
    }

    li ul {
    position: absolute;
    left: 149px; /* Set 1px less than menu width */
    top: 0;
    display: none;
    }

    /* Styles for Menu Items */
    ul li a {
    display: block;
    text-decoration: none;
    color: #fff;
    background: #000; /* IE6 Bug */
    padding: 9px;
    border: 1px solid #ccc; /* IE6 Bug */
    border-bottom: 0;
    }

    /* Holly Hack. IE Requirement \*/
    * html ul li { float: left; height: 1%; }
    * html ul li a { height: 1%; }
    /* End */

    li:hover ul, li.over ul { display: block; } /* The magic */



    HTML

    <ul id="nav"> [*]
    uno[*]
    due
    [*]
    tre
    [*]
    quattro
    <ul>[*]prova
    <li class="sep">prova2<span></span>[*]prova3[*]prova4[*]prova5[/list]



    javascript

    // JavaScript Document

    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" over";
    }
    node.onmouseout=function() {
    this.className=this.className.replace(" over", "");
    }
    }
    }
    }
    }
    window.onload=startList;

  2. #2
    Utente di HTML.it
    Registrato dal
    May 2008
    Messaggi
    35
    nessuno sa risp???????

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.