Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

HTML and CSS grid

Clea Carty• 20

@CNash23

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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 helpful

1
IRVINE MESA• 1,855

@DrMESAZIM

Posted

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 helpful

1

@Phospudim

Posted

congratz, very cool work, keep going and you be great, i am try do my best too

1

Clea Carty• 20

@CNash23

Posted

@Phospudim Hey thank you and same to you!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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