making drop down menu but problame.....

Discussion in 'CSS' started by i_am_dhaval, Jun 25, 2007.

  1. #1
    here is code

    css code---------------------

    .nav-container a{
    width: 145px;
    height: 18px;
    display: block;
    background: #E5E0E7;
    border: 1px solid #BBAECC;
    text-align: center;
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin: 2px 0px;
    padding: 3px 0px;
    color: #000000;
    }

    .nav-container a:hover{
    background: #BBAECC;
    border: 1px solid #8C77AA;
    color: #FFFFFF;
    }

    li ul {
    display: none;

    }
    li:hover > ul {
    display: block;
    }

    --------------------

    -html code------------------

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link id="Style" href="css.css" type="text/css" rel="Stylesheet" />
    </head>

    <body>

    <div class="nav-container">
    <a href="wewew">Item 1</a>
    <a href="">Item 2</a>
    <ul>
    <li>
    <a href="">Item 3</a></li>
    </ul>
    <a href="">Item 3</a>
    <a href="">Item 4</a>
    <a href="">Item 5</a>
    <a href="">Item 6</a>
    <a href="">Item 7</a>
    </div>



    </body>
    </html>
     
    i_am_dhaval, Jun 25, 2007 IP
  2. Leox Adir

    Leox Adir Guest

    Messages:
    237
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you tell us what your problem is?
     
    Leox Adir, Jun 25, 2007 IP
  3. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #3
    when my cursor going on "<a href="">Item 2</a>" then pop up menu shold be open....
     
    i_am_dhaval, Jun 25, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Are you just cross posting all over the place? That is inconsiderate to the disparate groups that are duplicating each other's attempts to help you.

    It is worth noting that the first response on each of these forums asked you the same thing. Does that indicate you are not even showing us the consideration of formulating a decent question? See http://www.catb.org/~esr/faqs/smart-questions.html

    gary
     
    kk5st, Jun 25, 2007 IP