Would really welcome some feedback specifically on the javascript as this is my first attempt using it on Front end mentor.
Joseph
@Jos02378All comments
- @Geoff-WalkerSubmitted about 3 years ago@Jos02378Posted about 3 years ago
Hey @Geoff-Walker, good job on this solution!
Some suggestions for you:
- Try not to set a fixed height to an element, consider using
min-height
or not setting the height at all so the element can grow as the content grows. - You can try to watch this video on creating an accordion with less Javascript accordion video.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
1 - Try not to set a fixed height to an element, consider using
- @satyamallick7Submitted about 3 years ago
I'm a newbie so please excuse the mess
@Jos02378Posted about 3 years agoHey @satyamallick7, good job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
to capitalized text in CSS. - Try to wrap your code in the body using a main element to clear some accessibility issues.
- You can try to use flexbox to create this solution, it will be easier for you to create the layout for the card.
- Don't set a fixed height to an element as it can cause issues. You can use
min-height
or not setting the height at all so your element can grow as your content grows. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use more relative units like rem and em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
Marked as helpful2 - You can use
- @ChitThetAungSubmitted about 3 years ago
Hello guys! Please suggest me about my solution .Thanks you.
@Jos02378Posted about 3 years agoHey @ChitThetAung, great job on this solution!
Some suggestions for you:
- You can use the
main
element to wrap your code in the body to clear some accessibility issues in the report. - You don't need to add alt text for the images because they are for decorative purposes.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
Marked as helpful0 - You can use the
- @nas096Submitted about 3 years ago
Are there any ways to improve this solution?
@Jos02378Posted about 3 years agoHey @nas096, good job on this solution!
Some suggestions for you:
- You can add a
max-width
to your main tag to keep the structure and shape of your card when the size of the screen is getting bigger. - You can try to follow a CSS naming convention called BEM which can save you from repeating your code. You can watch this video for more information Watch the video.
- You can try to put the div with the class of attribution inside a
footer
tag to clear the accessibility issue in the report.
I hope this helps, good luck!
Marked as helpful1 - You can add a
- @Nathan-FrontSubmitted about 3 years ago
Any suggestion to make it better will be helpful in learning. Thank you
@Jos02378Posted about 3 years agoHey @Nathan-Front, good job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
to capitalize text in CSS instead of typing them in HTML. - You can try another way to create the image and the overlay using an
img
tag and a div like in this video overlay video. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
Marked as helpful0 - You can use
- @Jxai00Submitted about 3 years ago
I'd love to get some feedback on my solution. Feel free to talk about where can I improve.
@Jos02378Posted about 3 years agoHey @Jxai00, good job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
to capitalized text in CSS instead of typing them in HTML. - You don't need to fill in the alt tag since the image is just for decorative purposes.
- Try to add a
max-width
to your container so that you can keep the structure and shape of the card if the screen size is getting bigger. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit read the article.
I hope this helps, good luck!
Marked as helpful1 - You can use
- @omerome83Submitted about 3 years ago
Any feedback would definitely be appreciated.
@Jos02378Posted about 3 years agoHey @omerome83, good job on this solution!
Some suggestions for you:
- For the mobile size, try to give some space so the card doesn't stick to the left and right sides of the screen.
- You can use
background-size: cover;
andbackground-repeat: no-repeat;
so the image can cover the container without being duplicated for IPad size. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like em in the future. Here is a link to an article that explains when to use which unit read the article.
I hope this helps, good luck!
Marked as helpful1 - @egemendemirSubmitted about 3 years ago
Feedback is appreciated. If there are any mistakes or bad practices in the code please let me know.
@Jos02378Posted about 3 years agoHey @egemendemir, great job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
to capitalized text in CSS instead of typing them in HTML. - You can add a transition for the button to make it nicer.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit read the article.
I hope this helps, good luck!
Marked as helpful1 - You can use
- @pccipriSubmitted about 3 years ago
I would appreciate if you could tell me what you think about my solution.Let me know if u have any advice regarding accessibility or responsiveness. I'm a beginner so any advice is welcomed. Anyway thanks for taking the time to view my solution.
@Jos02378Posted about 3 years agoHey @pccipru, good job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
for capitalizing text in CSS instead of explicitly typing them in HTML. - You can add an additional overlay with a lower opacity to achieve the same color for the image.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem in the future. Here is a link to an article that explains when to use which unit read the article.
- Try to recreate this solution without setting an explicit height on your elements. You can try to use
min-height
or not setting the height at all so the card can grow as the content grows.
I hope this helps, good luck!
Marked as helpful1 - You can use
- @VaNaChiMaSubmitted about 3 years ago
I would appreciate any feedback, thank you in advance.
@Jos02378Posted about 3 years agoHey @VaNaChiMa, great job on this solution!
Some suggestions for you:
- You can use
text-transform: uppercase
to capitalized text in CSS instead of explicitly typing them in HTML. - For decorative images or icons, you don't need to put alt text for it since they don't actually add meaning to your content.
- You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like em in the future for padding. Here is a link to an article that explains when to use which unit read the article.
I hope this helps, good luck!
0 - You can use
- @JSaporskiSubmitted about 3 years ago
Solution updated, fixed the vertical align of the main component. Feel free to give any tip about the solution, would help me a lot.
@Jos02378Posted about 3 years agohey @JSaporski , great job on this solution!
Some suggestions for you:
- For your stats, instead of splitting the h2 and the span tag, you can use
<h2>10k+ <br><span>companies</span></h2>
instead. - I don't know how you manage to get the image to look like that without styling it but you can use an overlay for the image using a
div
just like in this video overlay video. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like rem and em in the future. Here is a link to an article that explains when to use which unit see the article.
I hope this helps, good luck!
Marked as helpful0 - For your stats, instead of splitting the h2 and the span tag, you can use
- @obaryoSubmitted about 3 years ago
Any feedback will be much appreciated
@Jos02378Posted about 3 years agoHey @obaryo, great job on this solution!
Some Suggestions for you:
- For the name and age, you can try to use a span with a heading like this
<h1 class="name">Victor Crest <span>26</span></h1>
and then style the span. - You can try to follow a CSS naming convention called BEM. You can watch this video for more information Watch the video.
- You can try to use relative units like em in the future for padding. Here is a link to an article that explains when to use which unit see the article.
- Try deleting all of the code that you don't need like the ones that you comment in the CSS file just to keep your code looking clean and professional.
I hope this helps, good luck!
Marked as helpful0 - For the name and age, you can try to use a span with a heading like this