highlight current page in menu
This commit is contained in:
parent
8e3b3ed0c0
commit
0bda210618
3 changed files with 10 additions and 2 deletions
8
base.css
8
base.css
|
|
@ -52,3 +52,11 @@ nav a, footer a, aside a {
|
||||||
font-size: 3em;
|
font-size: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav a.current {
|
||||||
|
text-decoration: underline #00000042;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover {
|
||||||
|
text-decoration: underline #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="index.html">home</a>
|
<a href="index.html" class="current">home</a>
|
||||||
<a href="poster.html">poster</a>
|
<a href="poster.html">poster</a>
|
||||||
</nav>
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="index.html">home</a>
|
<a href="index.html">home</a>
|
||||||
<a href="poster.html">poster</a>
|
<a href="poster.html" class="current">poster</a>
|
||||||
</nav>
|
</nav>
|
||||||
<aside>
|
<aside>
|
||||||
<a href="javascript:if(window.print)window.print()" class="print">🖨️ imprimer</a>
|
<a href="javascript:if(window.print)window.print()" class="print">🖨️ imprimer</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue