
Responsive Blog Preview Card using bootstrap and Responsive CSS
Design comparison
Solution retrospective
I am proud of successfully completing this project. I think I have done a pretty good job using Bootstrap. Next time, I will try not to use Bootstrap and do project using normal CSS.
What challenges did you encounter, and how did you overcome them?I face challenges in spacing like margin and padding but I solve them after looking at the figma file. Also I find it hard to manage figma files and open them because I don't have a application in my desktop but still somehow I managed to solve it.
What specific areas of your project would you like help with?In the button-like element where there is the word "learning". In figma the font size is 14 px but when I try it overlap. Same case with the title also. I need help in these areas.
Community feedback
- @WasiunAlamPosted 3 months ago
Thanks bro for your time. Actually I take the width and height from the provided figma file. And also it works correctly in the live preview but I don't know why it is behaving like this. If you don't believe me then you can check the like preview of this site.
Overall thanks for your support.
0 - @MarziaJaliliPosted 3 months ago
Well done, buddy!!!
Here's a breakdown of how you can solve the issue:
The issue is caused by the strict
width
property that is set to 82px.Get rid of that, if you need a larger button use the
padding
property than thewidth
.Using a strict
width
andheight
is consider bad practice because it will cause issues like this one.In addition, there's a shorthand for setting the padding:
/* 1 */ padding: top left bottom right; padding: 1rem .4rem .4rem 1rem; /* 2 */ padding: block(top and bottom) inline(left and right); padding: 1rem .4rem; /* 3 */ padding: top inline bottom; padding: 1rem .4rem 1.5rem;
It will surely get the job done😎.
0
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