The paragraph text stretches out the padding which doesn't look right. I'm trying to figure out how to keep the left and right margins of the paragraph text with the QR code image.
Holow
@HollowZllAll comments
- @breteoSubmitted about 1 year ago@HollowZllPosted about 1 year ago
Try using margin-left, margin right. Not sure if that's the answer you're looking for, since I see js files and variables in your github page for this project. Either way good luck, I find this challenge more about the css, it's an interesting take to use JS.
1 - @FlexowitschSubmitted about 1 year ago
Hello,
I am aware that the star and the image on the rating page ar missing.
I did this to get better at javascript. What i wasnt able to create was an active state. When the rating button is clicked, it should remain orange. How can this be done?
@HollowZllPosted about 1 year agodocument.querySelector('.ratings').onclick = function(event) { console.log("event", event); changeNumber(event); let clicked = event.target.innerHTML; let color = event.target; color.style.backgroundColor = orange; color.style.color = white; console.log("esto es un rating", rating ); };
I did it by selecting the whole range of buttons by selecting the div where all the ratings were. (.ratings). ----> then onclick ----> selected the button with the variable color ----> then use the .style for it to stay orange. Hope this helps in some way :)
Marked as helpful0