@sheikhhaseeb559
Submitted
Looking to hire developers?
@tesla-ambassador
@sheikhhaseeb559
Submitted
@tesla-ambassador
Posted
Hey sheikhhaseeb559. Congratulations on uploading this solution. I see you've been putting in the work even during the holidays 👏
You have improved with the responsive design! That's a good milestone 🥳
The key thing I'd love to address here is the layout. I gleaned over your code and realised that you rely so much on the position: relative;
attribute to move your components to your desired space. This method doesn't maintain the consistency of the layout across different screen sizes. I suggest you take a look at how to use flex
or grid
these will do you a lot of help with your layout. Here are some resources you can use: flex-tutorial and grid-tutorial. I hope this helps you a bunch!
Happy holidays and happy coding! 🎉
Marked as helpful
@sheikhhaseeb559
Submitted
Product Preview card template feel free to check and comment my mistakes
@tesla-ambassador
Posted
Hey sheikhhaseeb559, It's good to see that you have uploaded another solution. I like that you have integrated media queries into your css now! Kudos 🥳!
Anyways, I looked at your css and noticed that there's a few things you could add to enable your container to be placed in the middle of the viewport. Here's some code you can add to your <body></body>
tag:
body {
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
Then you can make these changes to your container
element so that the previous changes can be effective...
Remove the following styles from your <div class="container"></div>
:
.container {
position: absolute;
left: 300px;
top: 90px;
}
Congrats on completing the challenge, happy coding!
Marked as helpful
@bkarabo754
Submitted
I have completed the product preview card. I would appreciate your feedback :)
@tesla-ambassador
Posted
Hey Bongani Masango, Congrats on completing your challenge!
I had a look at your code and found that you set flex-col
without setting flex
first in your tailwind css. This would have enabled you to use flex instead of grid which would be great for this solution and then you'd change to flex-row
at the desired screen width. This would prevent your divs from separating. Otherwise, I think this is really great!
Marked as helpful
@sheikhhaseeb559
Submitted
At first i this design i have learn about text alignments and images settings
@tesla-ambassador
Posted
Hey sheikhhaseeb559 this looks impressive and I'm glad you learned about text and alignments and how to work with images after completing this challenge that's a great start! Your challenge however lacks 2 things that is:
This is a good solution. Keep up the good work!
Marked as helpful
@ArunBohra12
Submitted
Please provide feedback with accessibility.
@tesla-ambassador
Posted
Hey Arun Bohra. I think this is near perfect and it's responsive. You could just add a shadow to the main card and It'll make it look a lot more like the design.
Happy coding!
@leonellv94
Submitted
-What did you find difficult while building the project? Grid took me a while.
-Which areas of your code are you unsure of? Grid again, i think it wasn´t a good coding even when i finished it.
@tesla-ambassador
Posted
Hey Leonel! Great solution it's looking pretty sharp 👌 I took a peek at your code and it's actually neat, don't beat up yourself too much on that. I also had a hard time writting proper css when I started out. It gets better with more and more practice. Also I like how you are using grid for your layouts, you are among the rare breed 😎
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.attribution
so that it's not so much at the bottom border. It'll make the solution look a little neater.
Keep up the great work and keep on coding!😎Marked as helpful
@troy03
Submitted
Next goal to submit a junior challenge that use a sass.
@tesla-ambassador
Posted
Hey Troy! It's great to see that you have uploaded yet another awesome solution.
Your report is looking so clean, kudos! 👌
Anyways It's responsiveness is consistent on all screens but I think it'd be a lot better if you switched to one grid column at a minimum screen width of 650px
because your card component still fits in the layout even at that screen width. (I also recommend using pixels instead of em
or rem
to specify screen widths in your media queries)
Marked as helpful
@ApplePieGiraffe
Submitted
Hey, everybody! 👋
This was a fun challenge in which I learned how to use and style the <details>
and <summary>
HTML elements.
I also added a bobbing animation to the floating cube (with a small touch from the drop-shadow
CSS function) and animated the linear-gradient
background with this helpful tool.
I'm quite happy with the result! 😊
Any feedback on both the design and code is welcome and appreciated! 😃
Happy coding! 😁
EDIT: For some reason, the details marker on each of the FAQs is showing up in the screenshot (even though I set their display
to none
) but they're gone on the actual page, as far as I can tell.
@tesla-ambassador
Posted
@APG, this is a very great solution! I like the blobbing animation and I think I will make use of that gradient changing resource. It might have been a year ago but man am I so glad to see you submit a solution (It's like that feeling when a marvel movie drops 😁).
What library do you use for animations these days?
Marked as helpful
@Rebeitte
Submitted
For this solution I used html, css and vanilla JS. I used a for loop to iterate over the botoms to select the ranks, also I added a buttom to close the submit page.
I'm open to any advice, I had problems with the rating point, because I wanted to print the option that user selected and not only "You selected 4 out of 5".
@tesla-ambassador
Posted
Hey Rebeitte! Congratulations on completing this challenge! It looks really sharp and I hope you had fun completing it. 👏 Here's a few pointers:
id
tag to the <span>
that contains the number 4 in your html. Then you can select that span in your javaScript using document.querySelector( '#element' )
or whatever selector you are comfortable with. So you need to save the value of the button selected by the user in a variable and set that variable as the innerText
property of the <span>
in your javaScript. To know a little more on innerText, follow this linkHappy coding and keep up the good work 👍
Marked as helpful
@nathanLloydw
Submitted
Just been practicing my tailwind & CSS, All feedback welcome.
@tesla-ambassador
Posted
Hey Nathan! Congratulations on completing this wonderful challenge! Looks like you had lots of fun doing it and I also love tailwind css 😎 Here's a few pointers:
726px
- 1168px
you can just increase the width of the card to 75% of the screen so that your components within your card can be displayed better and your layout won't break.<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work👍
Marked as helpful
Maybe I'm too newbie but to me, it was very difficult to try to organize all the CSS style and changes from mobile to desktop. I think my main question is about what tips there are to figure out all the CSS spaces/margins/paddings to replicate the layout
@tesla-ambassador
Posted
Hey Victor! Congratulations on completing this great challenge. Your solution is pretty solid!😎 Here's a few tips and some suggestions to your inquiry:
px
, rem
, em
etc. So don't worry about this, just keep on practicing and also look at how other people write their code to be able to notice those common patterns and to borrow a few ideas. You did really well with this solution!<h2> - <h6>
) in your <article>
. In your case, you have two options, you can use <div>
instead of the <article>
because the div
doesn't require you to add heading tags or you can make the headings to your articles <h2>
tags. This will clear all your HTML validation issues<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the great work! 👍
Marked as helpful
@12nuskek
Submitted
What did you find difficult while building the project? The most difficult thing was probably trying to resize the image correctly.
Which areas of your code are you unsure of? The CSS is quite messy as i didn't build the site with mobile in mind initially.
Do you have any questions about best practices? I've used random bits of padding and margins in certain places. It works but is this really the best way to do this. they are all in px as well. Should i be using a different format?
@tesla-ambassador
Posted
Hey 12Nuskek, congratulations on completing this challenge! I hope you had lots of fun doing this! Here's a few tips and a few answers to your questions:
width
and height
properties to 100% so that it occupies that container and then you can set the size of the container to a percentage relative to it's parent element say width: 90%
and the image will always resize according to the change in the size of its container.px
as a matter of fact most people use px
to set their margin and padding properties. Also yes, it's always advisable to add margins and paddings where necessary.alt
text to your images. This is because it tells the browser what image is being displayed and this can also help those using screen readers to know what image is being displayed on the website. It will also clear some of your HTML validation issues and accessibility issues<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work! 👍
Marked as helpful
@olenahladkova
Submitted
It looks like I could do it more elegantly, but I tried to make a result as close to images as possible. I believe it would have been much easier with Figma files, but without them, it is also some challenges.
@tesla-ambassador
Posted
Hey Olena! Congrats on completing this challenge. I think you nailed it so well and while it might have been a lot more easier with the figma files, sometimes we need to be able to work without them and you did so well 🎉 Here's a little pointers:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the great work! 👍
Hi Guys, Please I want you to check and give me feedback. Tips on best practices.
@tesla-ambassador
Posted
Hey David! This is a great solution, kudos to completing the challenge! 😎 Here's a few pointers you could use:
aria-label
property and set it to star icon button
to your button incase you were not going to add text because the browser needs to identify what button that is and it also helps those using screen readers. Your button should look like this
<button aria-label = "star icon button"> <svg><path></path></svg></button>
That will resolve some of your accessibility issues.<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work👍
Marked as helpful
@Slyssy
Submitted
I think I did ok on this. One thing I noticed is that after I deployed, the location page address section did not fit directly under the map. It works fine when I inspect it in google chrome, but not on my iphone. I overcame this by setting the z-index to 1 for the address section, but all this does is put that section over the map. Not sure why it does this, and any feedback would be greatly appreciated.
@tesla-ambassador
Posted
Hey Stephen, congrats on completing this challenge, It must have been fun!!! Here's a few pointers:
z-order
Div
within a button is sure to generate some errors, you might consider just removing the divs containing the button text and the <img>
tag and you could just let me be as they are so your code will look like this <button> text <img></img> </button>
That should solve some of your HTML validation issues.<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy Coding! 👍
Marked as helpful
@joyrexjrl
Submitted
Any feedback would be appreciated. doing as many of these smaller projects as I can to get "gooder" as the kids say (perhaps) now and days.....
@tesla-ambassador
Posted
Hey Rick, congratulations on completing this wonderful challenge! It looks pretty awesome and I think the responsiveness is pretty great!
I am only here to address the accessibility issue on your report! In order to resolve your accessibility issue, you might wanna use landmarks in your html code, these help browsers easily navigate your code. So you might consider wrapping your divs in landmarks like <main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.
Happy coding and keep up the great work 👍
Marked as helpful
@VANIMEHTA
Submitted
I have used jquery in this project and my site was working perfectly fine before deploying it. ie all the dropdown menu and active states were working. But none of this feature is working after deploying Can someone pls help with this!
@tesla-ambassador
Posted
Hey Vani, congratulations on completing this challenge, it looks pretty solid! 💪 Here's a few pointers that could be useful:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.alt
text to your images. This is because it tells the browser what image is being displayed and this can also help those using screen readers to know what image is being displayed on the website. It will also clear some of your HTML validation issues and accessibility issuesHappy coding and keep up the great work! 👍
@scegob
Submitted
This was my first time following along to a style guide, it gave me great practice with following along with it it. I would like to get more done with mobile first design. The area I was unsure of was to get it more to the center but it is
@tesla-ambassador
Posted
Hey Billeh, congratulations on completing this challenge! I hope you enjoyed taking it on 😎 Here's a few tips to help you completely annihilate this challenge 💥 :
attribution
div and the card component in a horizontal direction. In order to fix those issues, you might want to add the following styles to your body.body {
flex-direction: column;
justify-content: center;
gap: 20px;
}
Just add them, it will center your card and let your items be flexed in a horizontal direction.
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work!
@orafaeloliveira
Submitted
I'm not sure about the size of the gaps between the elements.
@tesla-ambassador
Posted
Hey Refael, congratulations on completing this challenge! Was it fun? I hope it was 😃 Here's a few pointers you might find useful:
grid
for your layout. Therefore, you might consider adding the following properties to your body
body {
height: 100vh;
background-color: var(--cream);
display: grid;
align-items: center;
justify-content: center;
}
It should center your card on both desktop and mobile view.
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work!👍
@Muhammadkadhim
Submitted
1-matching the font weights
@tesla-ambassador
Posted
Hey Muhammad, congratulations on completing this challenge! I hope it was a fun adventure 😎. Here's a few pointers you might find useful:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work
Marked as helpful
I'm kind of having some difficulty on aligning the contents vertically, I have applied the flexbox column justify-content and align-items as center, but the content still sits on top
@tesla-ambassador
Posted
Hey Louis, congratulations on completing this challenge! Your solution looks pretty neat. To address your question, you could add the following properties to your body element!
body{
display: flex;
height: 100vh;
flex-direction: column;
justify-content: center;
}
That should center your card component vertically! 😁
Here's a few other pointers:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.<p>
as the child element of your <span>
tag but the reverse is true, I think you should consider using <p> Your text <span> your special text </span> more text </p>
this is becaue a <span>
is an inline element as opposed to a <p>
which is block level element. This will also fix most of your HTML validation issues.Happy coding and keep up the great work👍
@lashaarveladze
Submitted
Hey guys 👋 Hope you have a great day!
This is the first project which I made here and I have some questions about it.(Just learning HTML & CSS)
Can you give me some advice about how to write clean code? What you will change into my code to improve it?
Also I am struggling to make responsive design and will be happy if you give me some advice about that too.
Thank you 💖
@tesla-ambassador
Posted
Hey Lasha, this is a very neat solution congratulations on completing your first frontend mentor project 🥳 To answer your questions:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Ps: Your heading tags should only increase by one ie when you have just used a <h1>
tag, your next heading tag should be <h2>
and after that <h3>
and it continues like that all the way to <h6>
. So they have to be in a sequential order. This will also clear some more of your accessibility issues.
Happy coding and keep up the good work!
Marked as helpful
@dvbenthem
Submitted
Hello Coders,
This my first project and i hope to get some feedback on how to improve my code. I always struggle to pick the correct class names. Also having trouble picking the right HTML tags. I looked to some other examples and they use for example <section> tags.
I'm also curious what you think of my css code.
Greetings, Danny
@tesla-ambassador
Posted
Hey DVBENTHEM, congratulations on completing your first frontend mentor challenge! I hope you had fun doing this 😎 About the class names, don't worry, that happens to almost everyone you'll be surprised by how people name their classes 😂 Also, on the point of HTML tags, you just need to read a little more on the essential HTML tags on (this link)[https://developer.mozilla.org/en-US/docs/Web/HTML] the more you write HTML code is the more you are able to discern which tag to use in a certain instance.
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.Happy coding and keep up the good work!
Marked as helpful
@Cachilox
Submitted
My first challenge in frontend mentor, I wanted to know if I meet the requirements and to know more about the best practices.
@tesla-ambassador
Posted
Hey Mariano! Congratulations on completing your first challenge on frontend mentor. It's a really great milestone, kudos! Your solution is really great and I love how responsive it is, what you did with the ratings as the screen width reduces was really great.
Here's a few pointers to help you resolve some of your accessibility issues:
<main>
or <header>
or <footer>
you need to do this according to how your page is structured. Incase you want to know more about landmarks, follow this link.<h1>
tag, your next heading tag should be <h2>
and after that <h3>
and it continues like that all the way to <h6>
. So they have to be in a sequential order.
These will help resolve most of your accessbility issuesHappy coding and keep up the good work!👍
Marked as helpful