• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • Ictscripters Chat

    AarClay 21 april 2026 om 11:34
  • Het Grote Vibe Code Topic

    Jeroen.G 8 april 2026 om 14:00
  • PWYL source gezocht

    Syntax 25 maart 2026 om 11:44
  • Help testers nodig voor android app Urgent

    Servertjee 20 februari 2026 om 12:07
  • Partner Gezocht om meerdere NFT Collecties op Open Sea te Plaatsen

    Servertjee 20 februari 2026 om 12:06
  • Afspraken systeem met planbeperking

    Jeffrey.Hoekman 20 februari 2026 om 11:52
  • Developer Gezocht

    Servertjee 19 februari 2026 om 17:31
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Servertjee 18 februari 2026 om 16:57

Marktplaats

  • 370 Nieuwe Domeinnamen April 2026

    shiga 1 mei 2026 om 12:06
  • Snel een website nodig?

    Syntax 10 april 2026 om 12:55
  • Sicarras.com - Moderne Mafia Text-Based RPG

    Syntax 5 april 2026 om 16:22

*Afgerond* Dropdown in een Responsive navigatie maken

  • TheBosS
  • 6 december 2014 om 14:44
  • TheBosS
    Beginner
    Berichten
    14
    • 6 december 2014 om 14:44
    • #1

    Beste ICT Scripters,

    Ik ben bezig met een website voor een bekende, nu moet ik in mijn responsive menu een dropdown maken, normaal gezien niet zo moeilijk maar ik ben er een behoorlijke tijd uitgeweest nu probeerde in door middel van visibility: hidden; dit te maken maar dat werkte niet.

    Nu heb ik mijn wijzigingen in de css weer weghaald voor dit dropdown menu omdat dit niet werkten. Ik hoop dat iemand mij wil helpen, Alvast bedankt voor moeite.

    Hieronder staat de code voor mijn navigatie en voor mijn css.

    Code
    <nav class="nav">
                    <ul>
                        <li><a href="futurehouse.php" class="nav__item">Future House</a></li>
                        <li><a href="#" class="nav__item">Music</a>
                            <ul>
                                <li><a href="tracks.php" class="nav_sub_item">Tracks</a></li>
                                <li><a href="podcast.php" class="nav_sub_item">Podcast</a></li>
                            </ul>
                        </li>
                        <li><a href="artist.php" class="nav__item">Artists</a></li>
                        <li><a href="tour.php" class="nav__item">Events</a></li>
                        <li><a href="#" class="nav__item">Media</a>
                            <ul>
                                <li><a href="Photos.php" class="nav_sub_item">Photos</a></li>
                                <li><a href="videos.php" class="nav_sub_item">Videos</a></li>
                            </ul>
                        </li>
                        <li><a href="contact.php" class="nav__item">Contact</a></li> 
                    </ul>
                </nav>
    Toon Meer
    Code
    .nav {
      float: right;
      width: 68.7384044527%;
      background: url(images/mainNavShadow.png) no-repeat top center;
      margin-right: -35px;
      position:relative;
    }
    .nav__item {
      display: inline-block;
      font: 1.5em "Dosis", sans-serif;
      color: #ffffff;
      margin-left: -4px;
      padding: 4.453441% 4.38596491228% 5.5%;
      border-left: 1px solid #050505;
      -webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.1);
      -moz-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.1);
      box-shadow: -1px 0 0 rgba(255, 255, 255, 0.1);
      -webkit-transition: all 0.2s;
      -moz-transition: all 0.2s;
      -ms-transition: all 0.2s;
      -o-transition: all 0.2s;
      transition: all 0.2s;
    }
    .nav__item:hover {
      background: #151515;
      color: #082f36;
    }
    .nav__item.nav__item_active {
      background: #151515;
      color: #082f36;
    }
    .btn-nav-toggle {
      display: none;
      width: 100%;
      font: bold 1.33333333em "Dosis", sans-serif;
      color: #082f36;
      text-transform: uppercase;
      padding: 1.30208333333%;
      background: #000;
      -webkit-box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
      -moz-box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
      box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    .btn-nav-toggle:before {
      content: "";
      display: inline-block;
      margin-right: 7px;
      vertical-align: -3px;
      width: 20px;
      height: 20px;
      background: url(images/responsive-nav-icon.png) no-repeat;
    }
    Toon Meer
  • Thisguyisgone
    Elite members
    Ontvangen Reacties
    197
    Berichten
    7.880
    • 7 december 2014 om 10:14
    • #2

    Pak Bootstrap, dit is een handig framework die ook al responsive is.

  • TheBosS
    Beginner
    Berichten
    14
    • 8 december 2014 om 07:19
    • #3

    Heey nog bedankt voor je reactie, echter had ik het al opgelost. Ik had namelijk mijn 2e ul element over het hoofd gezien in de css. Ik heb dit Voor de mensen die dit probleem ook hadden heb ik nu dit toegevoegd aan mijn css:

    Code
    ul#navigation li:hover > ul
    {
        visibility:visible;
        opacity:1;
    }
    
    
    ul#navigation ul, ul#navigation ul li ul {
        list-style: none;
        margin: 0;
        padding: 0;    
        visibility:hidden;
        position: absolute;
        z-index: 99999;
        background:#f8f8f8;
        box-shadow:1px 1px 3px #ccc;
        opacity:0;
        -webkit-transition:opacity 0.2s linear, visibility 0.2s linear; 
        -moz-transition:opacity 0.2s linear, visibility 0.2s linear; 
        -o-transition:opacity 0.2s linear, visibility 0.2s linear; 
        transition:opacity 0.2s linear, visibility 0.2s linear;     
    }
    
    
    ul#navigation ul {
        top: 43px;
        left: 1px;
    }
    
    
    ul#navigation ul li ul {
        top: 0;
        left: 181px;
    }
    
    
    ul#navigation ul li {
        clear:both;
        width:100%;
        border:0 none;
        border-bottom:1px solid #c9c9c9;
    }
    
    
    ul#navigation ul li a {
        background:none;
        padding:7px 15px;
        color:#616161;
        text-shadow:1px 1px 0px #fff;
        text-decoration:none;
        display:inline-block;
        border:0 none;
        float:left;
        clear:both;
        width:102px;
    }
    
    
    ul#navigation li a.first {
        border-left: 0 none;
    }
    
    
    ul#navigation li a.last {
        border-right: 0 none;
    }
    Toon Meer

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Google Cloud is in de problemen (en AWS weet het)

    ICTscripters 14 april 2026 om 12:01
  • Nebius kondigt bouw aan van een van Europa's grootste datacenters

    ICTscripters 31 maart 2026 om 12:03
  • Samsung zal miljoenen verdienen aan Apple iPhone Fold dankzij zijn 12GB RAM

    ICTscripters 11 maart 2026 om 22:42

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design