Hello. I am currently working on the freeCodeCamp Portfolio Page challenge, and I need some help with changing the height of the navbar link’s active background color as well as changing the colors of the tooltips.
Navbar link
I’m trying to get the active link on my navbar to look something like this:
When the link is active, I want its background color to fill the height of the navbar. I’ve tried adding padding, margins, and line-height, etc. But nothing seems to work. Does anyone know how to do this?
Tooltip colors
I want to set a different color for each of the tooltips on the follows or social section of my portfolio page without affecting the color of the rest of the other tooltips.
I recommend using an unordered list for your navigation.
This example was a fork of a W3schools example which I have modified slightly so it looks like your sample:
When the link is active, I want its background color to fill the height of the navbar
the navbar is the container of all links, i doubt you want your entire navbar to look active.
Tooltip colors .twitter + .tooltip > .tooltip-inner{background-color:#00a0d1;}
but .tooltip isn’t a sibling of .twitter accdg to dev tools
here’s a fiddle of custom tooltips - Edit fiddle - JSFiddle - Code Playground
hope this helps. goodluck @Freya
The .twitter is just an example of what I tried to get the tooltips to change color. I added a class called twitter to the Twitter icon and then the CSS I mentioned in my first post.
Thanks for your help and the link about custom tooltips. I got it to work.