A very tough challenge for me. It's my first time using Javascript connected HTML. I had to watch several video tutorials to understand how to solve it. I think I still have a long way to go. Anyway, I was very happy with the result. I am very scared but impatient to continue practicing.
John Clampet
@johnclampetdevAll comments
- @TripinetaSubmitted about 2 years ago@johnclampetdevPosted about 2 years ago
Hello Gaston!
Great use of variable (js) and class (html) names! I wish that my code for this project was as clean.
I especially like your use of .forEach!
I might also incorporate the use of footers in my projects going forward. Great job!
0 - @KevinMA95Submitted about 2 years ago
My first junior challenge.
Any advice is welcome, especially with the button since I could not figure it out how to align it correctly every time a new advice is generated.
@johnclampetdevPosted about 2 years agoYour app looks and functions great!
There are several ways you could align/center the button.
One way I prefer/suggest is using 'position: absolute' on the button, and 'position: relative' on the parent container (assuming its the div surrounding the advice/qoute)... by doing this, the button will always position itself RELATIVE to the parent container.
Look into 'position relative/absolute', AND "transform: translate" ... a combination of these CSS properties would definitely help in vertical and horizontal alignment, consistently every time.
Hope this helps!
1