I'm a complete beginner in HTML/CSS. I currently have a wrapper on my website with links which re-direct to different pages. My objective is to update the link to appear pressed when I am on the respective page.
An example of this is if you're on stack overflow and you click the "Jobs" page it will re-direct you to stackoverflow.com/jobs and that link is highlighted/pressed.
From my understanding, the way I've implemented the wrapper is by using containers.
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="index.html">myname</a></h1>
<nav class="links">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
.
.
.
My project is a pre-made SASS theme which has a _wrapper.scss
file. My intention is not to edit this file as I don't think I'm quite ready to learn how to compile SASS files and convert them to CSS, but is there an alternative way to get the result I want?
I'm familiar with the onmouseover
and onmouseout
events, however, is there an event for what I want to achieve?
Thanks!