responsive preview card using flex and some js
Design comparison
Solution retrospective
i am struggling with applying css styles how can i make items of some div to transform according size? i applied overflow hidden to maintain size but it is not enough. i could use "container-fluid" using bootstrap but i want to do normal css. help will be much appreciated.
Community feedback
- @RioCantrePosted almost 3 years ago
Hello there! Good job in this challenge. Viewing the solution, I think you should consider the following as well…
- Adjust the padding in
.main-content
intopadding: 1.5rem 3rem;
, inh1
intopadding-bottom: 1rem;
and.main-para
rule set intopadding-bottom: 1rem;
- Adjust the margin in
.naming
intomargin-right: 14rem;
- Instead of
div
, alternatively wrap the content withmain
tag . Use semantic tags, for HTML structures, refer it with this one Semantics - Include description with the
alt
in image tags. Like this line<img src="images/icon-share.svg" alt="">
- Add Flexbox on
max-width:952px
breakpoint, withwidth: 80%;
andheight: auto;
in the.container
andwidth: 100%;
in the.main-img
rule set
Above all, Well done! Keep it up and Hope this is helpful!
Marked as helpful0@avirajwalunjPosted almost 3 years ago@RioCantre hey rio seeing your score i thinks you have been working in frontend for long time. can you tell me how can i make my code seem clearer much professional alike. i just want to improve my code, give some suggestions!
0 - Adjust the padding in
- @optimusprime202Posted almost 3 years ago
Hey @avirajwalunj, This is the best ever.
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