I am trying to make Colors' Gallery, but I cannot achieve it.
Here is what I've done so far.
I want to try, when the user clicks button, li appended to ul and this is where the mess starts. I thought after I append li, the background-color would've applied to li itself but it instead applied to ul. Could you help me pls, cuz I am newbie and also don't blame me for my English if I have mistakes. English is my third language, trying to explain as hard as I can!
Creating Color Gallery
82 views Asked by FoxKllD At
2
I changed your code check it out http://jsfiddle.net/8USqU/5/
This part is looking wrong.
I changed to
Actually you can use
background-colorinstead ofbackground. Becausebackgroundselector can take lots of property, but all you need isbackground-color