Skip to content

Commit

Permalink
Class for current nav item
Browse files Browse the repository at this point in the history
Fixes #147
  • Loading branch information
lkhrs committed May 16, 2023
1 parent 9404413 commit 19dd052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>Simple.css Test Page</h1>
<p>This is a test page filled with common HTML elements.</p>
<nav>
<ul>
<li><a href="#text">Text</a></li>
<li><a class="current" href="#text">Text</a></li>
<li><a href="#embedded">Embedded content</a></li>
<li><a href="#forms">Form elements</a></li>
<li><a href="https://simplecss.org/">Project homepage</a></li>
Expand Down
3 changes: 2 additions & 1 deletion simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ header > nav a:visited {
text-decoration: none;
}

header > nav a:hover {
header > nav a:hover,
header > nav a.current {
border-color: var(--accent);
color: var(--accent);
cursor: pointer;
Expand Down

0 comments on commit 19dd052

Please sign in to comment.