Posts by Charles Cavalcante • 121 points
2 posts
-
2
votes1
answer34
viewsA: How to mark a link when pressing, without marking another one with javascript?
You need to remove the element class by adding earlier, see the changes in the code below: const links = document.querySelectorAll('ul li a'); for (let i = 0; i < links.length; i++) {…
-
0
votes1
answer69
viewsA: How to position the Section below the menu
From what I’ve seen you’re using menu with position:fixed, to solve just add a padding-top in the body: body { padding-top: 60px; // altura do seu menu }…