Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What attribute to make ASP.NET VB 2010 menu cascade?

Posted on 2013-11-14
1
Medium Priority
?
236 Views
Last Modified: 2014-01-27
When I click on “organization” item in root of menu (first attachment), the sub-organizations are presented horizontally (second attachment).  By what attribute of the menu control can I make the sub-organizations be presented vertically?  (This can also be seen at home page of telosso.org,)
rootMenu.jpg
menuSecondLevel.jpg
0
Comment
Question by:hrj5721
1 Comment
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 2000 total points
ID: 39650491
Don't use tables for this mate...
Menus are easily done with ul elements and CSS.

Here's a working example: http://jsfiddle.net/AlexCode/D9Ykb/

<ul class="menu">
    <li><a href="#1">About Us</a></li>
    <li><a href="#2">Events</a></li>
    <li><a href="#3">Classes</a></li>
    <li>
        <a href="#4">Organization</a>
        <ul>
            <li><a href="#1">Student Council</a></li>
        </ul>
    </li>
    <li><a href="#5">Administration</a></li>
</ul>

Open in new window

ul.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: block;
}
ul.menu li {
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
}
ul.menu a {
    padding: 5px;
    border-right: solid 1px #000;
}

ul.menu li ul {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 25px;
}

ul.menu li:hover ul {
    display: block;
}
ul.menu li ul li {
    width: 150px;
}
ul.menu li ul li a {
    border: none;
}

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question