highlight current page in menu

This commit is contained in:
vincent-peugnet 2025-11-11 14:57:34 +01:00
parent 8e3b3ed0c0
commit 0bda210618
3 changed files with 10 additions and 2 deletions

View File

@ -52,3 +52,11 @@ nav a, footer a, aside a {
font-size: 3em;
}
nav a.current {
text-decoration: underline #00000042;
}
nav a:hover {
text-decoration: underline #000000;
}

View File

@ -12,7 +12,7 @@
<body>
<nav>
<a href="index.html">home</a>
<a href="index.html" class="current">home</a>
<a href="poster.html">poster</a>
</nav>
<main>

View File

@ -13,7 +13,7 @@
<body>
<nav>
<a href="index.html">home</a>
<a href="poster.html">poster</a>
<a href="poster.html" class="current">poster</a>
</nav>
<aside>
<a href="javascript:if(window.print)window.print()" class="print">🖨️ imprimer</a>