Random Quote Machine - Review and Help Please!

Please review my project -


Also, for some reason, the border doesnt appear around my quotes. I have set css: border-color using jquery. Can anyone please tell me where I am going wrong?

Give this a shot:

$(’.quotes’).css({“border-color”: randColor,

1 Like

Hey, thanks! I tried, it didnt work either. Wonder what’s happening. There’s no syntax error.

If you’re wondering why the initial quote (the napoleon quote) doesn’t have a border, it’s because you draw the border when you click the “new quote” button. On load, you haven’t clicked yet. Randallfine’s solution should work for clicks of the button, but your codepen right now has white (no quotes) rather than randColor, and that won’t work since white is not a variable that’s been defined anywhere (change to 'white').

1 Like

Thanks a ton! It works indeed! :slight_smile:

1 Like