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

Responsive multistep form (reactjs&css)

@stefanappdev

Desktop design screenshot for the Multi-step form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


I was using tailwindcss originally it but was not working correctly,that aside, can you rate this project?

Quick question: What is the purpose of min-content, max-content and fit-content?

Community feedback

Ahmed Faisal 5,095

@afrussel

Posted

Hello, @stefanappdev I display your codes. You should probably learn how to use React to create multistep forms with validation capabilities and CSS. It's somewhat difficult to walk through every step, but if you simply verify the developer's solution, we can quickly identify the issues.

The following is a reference link to the solution to your question: Sure, here's a brief explanation of min-content, max-content, and fit-content in the context of CSS.

  • min-content: This value sets the size of a box to the minimum size required to contain its content without overflowing. It allows the box to shrink to the smallest size possible based on its content.

  • max-content: This value sets the size of a box to the maximum size required to contain its content without overflowing. It allows the box to expand to the maximum size possible based on its content.

  • fit-content: This value sets the size of a box to fit the content along a specified axis (width or height), up to a maximum size defined by another property or value. It is similar to min-content, but it lets you set a maximum size for the content to expand within.

These values are commonly used in CSS for sizing elements, particularly in grid layouts and with the width or height properties. They provide flexibility in creating responsive designs that adjust based on the content they contain.

Reference: MDN Web Docs on CSS min-content, max-content, and fit-content: MDN Web Docs

Marked as helpful

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