In the bottom right corner of the CodePen example, there should be a button that says Fork. Click it. This will make a copy of the code that you can save to your CodePen account.
While anyone can edit or fork a CodePen, you can’t save and share your work without creating a CodePen account. It’s easy and free. The button to do this is in the upper right corner of the CodePen window.
I had to add a workaround for the dropdown-menu a because I had set first-child hover background for the icon (a first child), and it was happening on the first child of the drop-down menu. Since it was nice, I set that same style for all of the .dropdown-menu a:hover.
#15DaysOfCSS Day 14: CSS-only Dropdown Challenge
https://codepen.io/kldickenson/pen/LYjEbmB
https://codepen.io/romola/pen/RwgXBVg?editors=1100
I had to add a workaround for the dropdown-menu a because I had set first-child hover background for the icon (a first child), and it was happening on the first child of the drop-down menu. Since it was nice, I set that same style for all of the .dropdown-menu a:hover.
https://codepen.io/w0whitaker/pen/QWgomMN