Submitted over 2 years ago
3-column-preview-card-component-main using html css responsive
@ranjanamukhia
Design comparison
SolutionDesign
Solution retrospective
I faced difficulty in these points:- 1.setting widths and max-widths 2.decising which one to make first desktop or mobile version asked in slack..then made mobile version first by writing its CSS first. 3.keeping my CSS short..need feedback for this urgently.
Community feedback
- @Gareth-MoorePosted over 2 years ago
Hey bro,
So what I can see that I think would be beneficial to you are:
- HTML semantic tags that are more descriptive. Instead of div1, div2 etc. you could have .card-container-item or something descriptive. Just for when you come back to something it could take quite a while to figure out what's going on and especially for others reading your code. It's easy on this small scale but will get difficult with bigger projects.
- Your background color isn't right. Although that's a small fix.
- With your div1, div2 and div3 containers you can add padding to make everything fit nicely instead of changing each elements margins. Also you could use flexbox to push the button to the bottom of the <div> using justify-self: flex-end; which looks far better because as you resize your screen the buttons jump up and down.
- Between mobile and desktop viewport sizes your card stays on the left side. Using a max width on the container and then setting side margins to auto will make the card centred on the screen as you increase the viewport width.
Well done though man, I hope this was helpful. You can take a look at my code and see if that helps. https://gareth-moore.github.io/Frontend-Mentor-projects/Newbie/3-column-preview-card-component-main/index.html
Thanks, Gareth
Marked as helpful0
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