Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Making a dropdown menu

  • 04-09-2015 12:02pm
    #1
    Registered Users Posts: 58 ✭✭


    Hey everyone,

    So I'm very new to coding and I was wondering if someone couldhelp me make my nav a dropdown menu?

    Here's my code:


    #menu_wrapper {
    clear: both;
    width: 100%;
    height: 95px;
    margin: 0 auto;
    }

    #menu {
    clear: both;
    width: cover;
    height: 75px;
    margin: 0 auto;
    background: #3EDAAD;
    }

    #menu ul {
    width: 1000px;
    overflow: hidden;
    padding: 20px 0 0 0;
    margin: 0px auto;
    list-style: none;
    text-align: center;
    }

    #menu ul li {
    padding: 0px;
    margin: 0px;
    display: inline;
    }

    #menu ul li a {
    float: left;
    display: block;
    width: 100px;
    padding: 4px 0 5px 20px;
    font-size: 18px;
    text-align: center;
    font-weight: normal;
    text-decoration: none;
    color: #212629;
    outline: none;
    }


    /* end of menu */



    <div id="menu_wrapper">

    <div id="menu">

    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">Our Project</a></li>
    <li><a href="#">Outreach</a></li>
    <li><a href="#">Notebook</a></li>
    <li><a href="#">Parts</a></li>
    <li><a href="#">Team</a></li>
    <li><a href="#">Collaborations</a></li>
    <li><a href="#l">Interlab Study</a></li>
    </ul>

    </div> <!-- end of menu -->


Comments

  • Registered Users, Registered Users 2 Posts: 262 ✭✭Banta


    I'm pretty sure "cover" is only for background images, so that could be a problem. (Even for background images, there's not great support on iOS, just partial, but that's for another matter.)

    Before we get too far into this, what exactly do you want to dropdown? Or where exactly do you want a dropdown? Do you want people to click/hover on a link, like "Menu" and then the whole thing to appear, or something like "Our Project" with Out Reach, Notebook and Parts under it.

    What you've shown in the above UL is just the top level items :)


  • Registered Users Posts: 58 ✭✭SuperSayian


    I'm wrong so! It's working away the way I want it to anyway bar the dropdown! :P

    I want the stuff to appear on hover if possible!

    even if I could just get project with "overview, results, submitted parts, prototype" under it that would be great! I could put it under for the others myself, I'd say :)


  • Closed Accounts Posts: 34,809 ✭✭✭✭smash


    Sent you a pm there with some simple bootstrap code.


Advertisement