@shivaprakash-sudo
Posted
Hello Kam,
Congrats on finishing the challenge!
Regarding the button centering, you can use bottom: -Mpx;
, where M is the necessary number of pixels required to centre the button horizontally.
Few points to note:
- Advice API caches the the data for 2 seconds, so please put
{ cache: "no-cache" }
as the second argument inside thefetch
statement. This is necessary because without this, the app doesn't work in Firefox and in other browsers we need to wait few seconds to get new advice. - For
advice
andadviceId
, you don't need to usespan
element, you can give those ID names to the parent elements themselves. - Also,
<br>
is not necessary here, sinceh1
is already a block element and next element comes under it.
Good luck on your next projects.
Marked as helpful