Design comparison
Solution retrospective
This is my second challenge. I notice the challenge asked to show the active and hover states so I am curious about how exactly to accomplish this.
I tried some code for the hover state but couldn't get it to work. And I'm just beginning to learn javascript so I am open to advice on that as well. Thank you in advance.
Community feedback
- Account deleted
Hello there,
Readable and maintainable code is important for any developer. Here are some recommendations to help improve the readability and maintainability of your code:
-
Use descriptive class names: Use clear and descriptive names for your classes. This helps other developers understand the purpose of the class without having to read the code.
-
Use consistent naming conventions: Use consistent naming conventions for your classes and functions. This helps maintain consistency throughout your codebase and makes it easier to understand.
-
Keep your code organized: Use indentation and spacing to keep your code organized and easy to read. This also helps to differentiate between different sections of your code.
-
Use comments to explain complex code: Use comments to explain any complex or difficult-to-understand code. This helps other developers understand the purpose of the code and its intended behavior.
-
Avoid code duplication: Avoid duplicating code as much as possible. This reduces the amount of code that needs to be maintained and makes it easier to understand and debug.
-
Write modular and reusable code: Write modular and reusable code wherever possible. This makes it easier to add new features or make changes to existing code without having to rewrite large sections of your codebase.
By following these recommendations, you can improve the readability and maintainability of your code, making it easier for other developers to work with your code and reducing the chances of introducing bugs or errors.
Marked as helpful1 -
- @DrMESAZIMPosted over 1 year ago
HI Clea Carty
to have hover effect you need to set your code in CSS file to
.button:hover{background-color : var(--selectedcolorcode)}
If you find tihis difficult let me know and I can do youtube video or livestream for your editing your code
Marked as helpful1 - @PhospudimPosted over 1 year ago
congratz, very cool work, keep going and you be great, i am try do my best too
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord