Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

3-Column-Card / HTML - CSS

dannyguzman31•20
@dannyguzman31
A solution to the 3-column preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Only worked in the desktop version, will work in the mobile version. Any tips or things I can do to improve?

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Daniel Montoya•320
    @dnewbie25
    Posted about 3 years ago

    Hi! Your design was on point. I see you created the desktop version first and would like to see the mobile as well. The only thing I would modify is the button border. When you hover over the button, that action creates a border of 1px, so when that happens it seems like all the text goes up a little bit. An easy way to solve it is by defining a border for the button the same size as the border you want when the users hover the cursor over it.

    You create that border, but set the color as transparent. That way, when people hover the button, the text won't go up. It would be like this:

    button {
       position: relative;
       cursor: pointer;
       border: 1px solid transparent; //->>the border is defined but left as transparent
       border-radius: 100px;
       padding: 15px 35px;
       margin: 5px;
       font-size: 14px;
    }
    
    button:hover{
       border-color: hsl(0, 0%, 95%); // this will change the color without make that movement in the text
    }
    

    The above is only if you don't want that text movement. Otherwise, there's no need to change it.

    Marked as helpful

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