@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.
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.
Hi Kevin!
Love your solution. Before reading your code, I didn't realise I could use document query-selectors to update the DOM; I was using jQuery to achieve the same thing but slower page load due to CDN. You also taught me how to properly import Google Fonts.
Can offer what I did to get the button in the right position. I placed the button directly below the card div.
text-align: center
position: relative; top: -27px;
I used the inspector to see how high the button was, then I moved it up half that amount. This is a little hacky but it works.