How can I correctly make the escape key appear as if it was pressed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I correctly make the escape key appear as if it was pressed?

https://code.sololearn.com/WhH3Q09RHeQj/#css Run this and press escape. I need the kbd element to style in a way that makes it look pressed. I don't think I did a good job.

1st Sep 2018, 12:12 AM
Daniel Cooper
Daniel Cooper - avatar
3 Answers
0
try adding this to the css kbd:active { background-color: #D3D3D3; box-shadow: 0 2px #666; transform: translateY(2px); }
1st Sep 2018, 5:10 AM
JME
0
I added it. If you read this before tomorrow, can you test it and tell me how it turned out?
1st Sep 2018, 6:52 AM
Daniel Cooper
Daniel Cooper - avatar
0
I like how it looks but you can do some more tweaking and figure out what looks best
2nd Sep 2018, 3:30 AM
JME