dropdown hover display

This commit is contained in:
2026-05-10 14:27:28 +02:00
parent 6e449912ab
commit 1b7802a2ac
2 changed files with 14 additions and 10 deletions
+4
View File
@@ -53,6 +53,10 @@ CSS für den Block Navbar mit seinen Elementen nach BEM
text-decoration: none;
}
.nav__dropdown:hover .nav__dropdown-menu {
display: block;
}
/* CSS von https://responsivenavigation.net/examples/simple-toggle/ */
/*
.nav { width:100%; background-color: #fff; border-bottom: 1px solid #ccc; }
+10 -10
View File
@@ -80,16 +80,16 @@ Globales Menü, wird via PHP später in alle Seiten eingebunden
</div>
<div class="nav__right">
<a href = "content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
<div class="nav__search">
<?php
<a href = "content/profile.php" style = "padding: 5px; text-align: center; text-decoration: none; display: inline-block;"><b>Dein Profil</b></a>
|
<div class="nav__search">
<?php
include_once 'search.php';
?>
</div>
|
<a href = "auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
<a href = "auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
?>
</div>
|
<a href = "auth/login.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Anmelden </a>
|
<a href = "auth/register.php" style = "background-color: #f44336; color: white; padding: 4px 20px; text-align: center; text-decoration: none; display: inline-block;"> Registrieren </a>
</div>
</nav>