Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
9
Comments
3
Mike Oram
@SlothSan

All comments

  • Kyrie•70
    @KyrieeWen
    Submitted over 2 years ago

    Responsive QR Code with plain HTML and CSS

    4
    Mike Oram•230
    @SlothSan
    Posted over 2 years ago

    Hello,

    Your CSS class names seem fine to me, they are descriptive and are in kebab case.

    As the other person pointed out, look at SCSS and then you can re-use parts of your CSS so that you don't end up repeating yourself.

    It will also allow you to nest selectors inside of other selectors to clean up the code.

    Looks great, good work!

  • ayush•300
    @ayush111222
    Submitted over 2 years ago

    #flex-box #css #javaScript

    1
    Mike Oram•230
    @SlothSan
    Posted over 2 years ago

    Hey,

    Looks great,

    You can get the values out from the inputs on the form by using this.

    for example for the CVC Number, you can have this event handler on the input cvcInput.addEventListener('input', inputHandlerCVC); that will listen for any inputs in the cvcInput.

    you can then have a function similar to this to handle the input and update the text on the card.

    const inputHandlerCVC = (event) => { sanitizeInputLength(event.target.value, cvcInput, 3); cvcOnCardBack.innerHTML = event.target.value; }

    You will also wan't to probably validate it as its entered so the user cannot enter a CVC that is longer than 3 digits / check that the user hasn't removed the number tag from the input and entered text, that said its not in the spec but the more validation the better !

    In reality the validation would be performed on submit to the backend and rejected if it wasn't in the right format.

    Marked as helpful
  • mttmene•20
    @mttmene
    Submitted over 2 years ago

    Responsive page using CSS FLEX

    2
    Mike Oram•230
    @SlothSan
    Posted over 2 years ago

    Hey,

    CSS is best to be split onto another file, you can then link it in the head of your HTML as so.

    <link ref="stylesheet" type="text/css" href="style.css" />

    When it comes to flexbox and centering / moving things please see the guide here : https://css-tricks.com/snippets/css/a-guide-to-flexbox/

    Loosk great tho, well done!

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub