CSS Beispiel Submenu
How do I make an css beispiel submenu?
What is a css beispiel submenu? How do you make a css beispiel submenu? This script and codes were developed by Anna Prenzel on 04 September 2022, Sunday.
CSS Beispiel Submenu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Beispiel Submenu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul> <li><a href="#">Home</a></li> <li><a href="#">Service</a> <ul class="level2"> <li><a href="#">Plakate</a></li> <li><a href="#">Schilder</a></li> <li><a href="#">Reklame</a></li> <li><a href="#">Broschüren</a></li> </ul> </li> <li><a href="#">Referenzen</a> <ul class="level2"> <li><a href="#">Projekte</a></li> <li><a href="#">Awards</a></li> </ul> </li> <li><a href="#">Kontakt</a> <ul class="level2"> <li><a href="#">FAQ</a></li> <li><a href="#">Über uns</a> <ul class="level3"> <li><a href="#">Team</a></li> <li><a href="#">Geschichte</a></li> </ul> </li> <li><a href="#">Formular</a></li> <li><a href="#">Anfahrt</a></li> </ul> </li> <li><a href="#">Impressum</a></li>
</ul>
<div style="clear:both"></div>
<h1>Willkommen auf unserer Webseite!</h1> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
</body>
</html>
CSS Beispiel Submenu - Script Codes CSS Codes
li{ float: left; list-style-type: none; background-color: blue; width:100px; line-height:50px; margin-right:1px; text-align:center; position: relative;
}
/*gilt für jedes a innerhalb von einem li*/
li > a{ text-decoration: none; color: white; display:block; padding: 0 10px;
}
/*für jedes a innerhalb von einem li, wenn es mit der Maus berührt wird*/
li > a:hover{ background-color: orange;
}
/*alle Submenüs sind zunächst unsichtbar*/
.level2{ display:none; position: absolute; font-style:italic;
}
/*jedes li innerhalb der Klasse level2*/
.level2 > li{ border-top: 1px solid white;
}
/*Gilt für jedes Element mit der Klasse level2 innerhalb von einem li, wenn es mit der Maus berührt wird.*/
/*Ein Submenü wird sichtbar, sobald ein Menüitem (li) mit der Maus berührt wird*/
li:hover > .level2{ display:block;
}
.level3{ display:none; position: absolute; top:0; left:101px;
}
li:hover > .level3{ display:block;
}
/*jedes li innerhalb der Klasse level3*/
.level3 > li{ border-bottom: 1px solid white; background-color:darkblue;
}
ul{ margin: 0; padding:0;
}
Developer | Anna Prenzel |
Username | HSZG-Frontend-Kurs |
Uploaded | September 04, 2022 |
Rating | 3 |
Size | 2,122 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
JS Beispiel innerHTML3 | 1,822 Kb |
JS Aufgabe Quiz jQuery | 1,895 Kb |
JS Beispiel innerHTML | 1,627 Kb |
Mars2020 | 5,377 Kb |
JS Beispiel RadioButtons angularJS | 1,922 Kb |
JS Beispiel RadioButtons 2 | 1,836 Kb |
JS Aufgabe Todo | 1,445 Kb |
JS Aufgabe Zitat | 1,498 Kb |
JS Beispiel onclick | 1,465 Kb |
JS Aufgabe Kommentar | 1,767 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Flat buttons for Eliassen.com | Kdooley89 | 1,737 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
Pure CSS Spinners | Jlong | 2,043 Kb |
A Pen by John Malc | F789gh | 1,420 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Improve | Gavra | 1,652 Kb |
A Pen by Huan Nghiem | Nightshade | 10,646 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
Sass random color animation | Jotavejv | 4,827 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!