Nikhil Sharma
@NIk22517All comments
- @sof28Submitted about 2 years ago@NIk22517Posted about 2 years ago
Hey @sof28, I'm impressed how much your first challenge is good the design is basically matching the figma files, amazing!
Here's one tip for you:
Replace
<img>
tag with<picture>
tag<picture> <source srcset="mobile.jpg" media="(max-width: 620px)" /> <img src="desktop.jpg" alt="Office Workers Smiling" /> </picture>
and add
border-radius
to thedesktop-img
img{ border-radius: 0.5rem 0 0 0.5rem; //border-radius: top-left top-right bottom-right bottom-left } **✌️ I hope this helps you and happy coding!**
Marked as helpful0 - @syrykh-feitSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Hey @syrykh-feit, I'm impressed how much your first challenge is good the design is basically matching the figma files, amazing!
Here's one tip for you:
Improve the semantics by replacing the
<div>
and use<section>
which is a better tag, remember that<div>
doesn’t have any practical meaning is just a block of elements, so for a big block of elements use semantic tags.This is a good resource to understand more about
semantic tags:
https://www.w3schools.com/html/html5_semantic_elements.asp
And for the
<img>
tag try using this<picture> <source srcset="mobile.jpg" media="(max-width: 620px)" /> <img src="desktop.jpg" alt="Office Workers Smiling" /> </picture>
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @KevinRo29Submitted about 2 years ago@NIk22517Posted about 2 years ago
Hey @KevinRo29, I'm impressed how much your first challenge is good the desing is basically matching the figma files, amazing!
Here's one tip for you:
before the
footer
add<hr>
it will add a horizontal line and you can style it
✌️ I hope this helps you and happy coding!
0 - @FrontDevsamirSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Hey @FrontDevsamir, I'm impressed how much your first challenge is good the design is basically matching the figma files, amazing!
Here's one tip about semantics for you:
You have use
height
inflex-item--img
try this
.flex-item--img{ width: 100%; line-height: 0; }
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @MohitMaharaSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Hello @MohitMahara, Congratulations on completing this challenge!
Nice code and nice solution! You did a good job here putting everything together. I’ve some suggestions for you:
You have used background-image instead of using background-image you can use
<picture> <source srcset="mobile.jpg" media="(max-width: 620px)" /> <img src="desktop.jpg" alt="Office Workers Smiling" /> </picture>
Improve the semantics by replacing the
<div>
and using<section>
which is a better tag, remember that<div>
doesn’t have any practical meaning is just a block of elements, so for a big block of elements use semantic tags.This is a good resource to understand more about
semantic tags:
https://www.w3schools.com/html/html5_semantic_elements.asp
when you
style
your page try using this*{ margin: 0; padding: 0; }
to remove the padding and margin to the
body
And for responsiveness try using
@media (max-width: 600px) { //add the class or tag here }
✌️ I hope this helps you and happy coding!
0 - @codinciSubmitted about 2 years ago
I'd like to receive feedback on explicitly sizing the card. Is this a best practice when it comes to responsive web design?
@NIk22517Posted about 2 years agoHey @codinci, I'm impressed how much your first challenge is good the design is basically matching the figma files, amazing!
Here's one tip about semantics for you:
Improve the semantics by replacing the
<div>
and using<section>
which is a better tag, remember that <div> doesn’t have any practical meaning is just a block of elements, so for a big block of elements use semantic tags.This is a good resource to understand more about
semantic tags:
https://www.w3schools.com/html/html5_semantic_elements.asp
Remover border from the bottom
And for the
<img>
tag try using You have used background-image instead of using background-image you can use<picture> <source srcset="mobile.jpg" media="(max-width: 620px)" /> <img src="desktop.jpg" alt="Office Workers Smiling" /> </picture>
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @gabrielkyaloSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Hey @gabrielkyalo, Congratulations!
Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:
Improve the semantic by replacing the
<div>
used for box and using instead<section>
is a better tag, remember that<div>
doesn’t have any effective meaning is just a block elements, so for a big block of elements use semantic tags.This is a good resource to understand more about semantic tags:
https://www.w3schools.com/html/html5_semantic_elements.asp
You have use
padding
padding-top
padding-bottom
in yourbox
class firstly understand if you are usingpadding
then you do not have youpadding-top
padding-bottom
padding-left
padding-right
.box{ padding: top right bottom left }
if you use
padding
and put just one value then that value will be applied to all the side in the box.box{ padding : 1rem; /// it will apply to all the side of the box }
for the text just apply
text-align: center
✌️ I hope this helps you and happy coding!
Marked as helpful1 - @atmcmustafaSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Hello @atmcmustafa, Congratulations on completing this challenge!
Nice code and nice solution! You did a good job here putting everything together. I’ve some suggestions for you:
You did really good work here putting everything together, something you can improve its your code HTML markup and semantics. You can replace the
<div>
that wraps each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of an element with the best tag in this situation. Pay attention that<div>
is only a block element without meaning. Change thebackground-color
of thestar rating
so it look good and also change thefont-size
orfont-weight
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @Chidisunday2Submitted about 2 years ago
How do I better switch between grid-row layout and grid-column layout?
@NIk22517Posted about 2 years agoHey @Chidisunday2, I'm impressed how much your first challenge is good the desing is basically matching the Figma files, amazing!
Here's one tip for you:
You have used
background-image
instead of usingbackground-image
you can use<picture> <source srcset="mobile.jpg" media="(max-width: 620px)" /> <img src="desktop.jpg" alt="Office Workers Smiling" /> </picture>
✌️ I hope this helps you and happy coding!
Marked as helpful1 - @omarsaleh11Submitted about 2 years ago
second try I hope u like it
@NIk22517Posted about 2 years agoHello @omarsaleh11, Congratulations on completing this challenge!
Nice code and nice solution! You did a good job here putting everything together. Especially like the signature that you have add-in your solution. I’ve some suggestions for you:
You did really good work here putting everything together, something you can improve it's your code you can wrap the paragraph with the quote with the tag <blockquote> this way you'll wrap each block of element with the best tag in this situation.
Marked as helpful0 - @vzvanovSubmitted about 2 years ago@NIk22517Posted about 2 years ago
Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:
Your solution seems fine, you did a really good job wrapping the content for these 3 cards. just increase the
@media(min-width)
so it can be responsive on all the mobile devicesMarked as helpful0 - @osamasalmSubmitted about 2 years ago
Hi everyone, this my solution for this challenge.
Any comments on my solution are welcomed \ (•◡•) /
Thank You!
@NIk22517Posted about 2 years ago@osamasalm Great code and great solution! I did this challenge too and know how hard it is to set up this grid layout. I think you've done a really good job building everything! one suggestion for you is just add margin-top to the main tag
0