Note: The Google Fonts links have been added inside Stuff for <head> section within Codepen.
Here’s the Assessment page
Note: The Google Fonts links have been added inside Stuff for <head> section within Codepen.
Here’s the Assessment page
Well done, @kdb13!
Some small improvement:
a:link
and a:visited
you could shorten the codea:link, a:visited {
color: #a66;
}
color: ghostwhite
but the dark background from a:focus
is overwritten by the background
property of a[href*="http"]
border-bottom: none;
on a:focus
and a:hover
this also affects the nav a
I hope that helps.
Cheers!
Michael
Thanks, @mikoMK. I kind of left the link markup in a hurry. Fixing it!
@mikoMK I’ve cleaned up the link code. Please let me know it it’s not clean enough or requires any other improvements.
Great work on the improvements!
The only problem i see now is that we don’t see a difference when we tab through the nav with the keyboard. (Not having a “visited” style on navs is fine though)
I think the easiest fix would be to move nav a:focus
from nav a:visited
to nav a:hover
:
nav a:visited {
background-color: transparent;
color: #a66;
}
nav a:hover,
nav a:focus {
background-color: #a66;
color: white;
}
This would make sense as the keyboard navigation then has the same style as mouse navigation (focusing and hovering)
Now I have nothing more to nag about
You really did an amazing job on all the tasks I looked at today
Have fun!
Michael
I’ve set the same styling for :hover
and :focus
as you mentioned.
Thank you very much supporting me on this task and correcting my mistakes.