Gradient-filled colorful boxes – in CSS

Want to make a nice gradient colored box without using ugly background images? Just apply this set of rules to any element, like DIV:
         
   

background-color: #00FF00;
background-image: -moz-linear-gradient(top, #00FF00, #FFFF00); /* Firefox */
background-image: -ms-linear-gradient(top, #00FF00, #FFFF00); /* IE10 */
background-image: -o-linear-gradient(top, #00FF00, #FFFF00); /* Opera */
background-image: -webkit-gradient(linear, left top, left bottom, from(#00FF00), to(#FFFF00)); /* Safari/Chrome */
background-image: -webkit-linear-gradient(top, [...]

Can’t find colors that “match”?

I recently had a problem creating a pie chart. Writing the PHP/HTML/CSS code was not a problem, but the chart was not looking too attractive. Obviously something was missing. After a while I realized the colors just don’t match…

 
TopOfBlogs Web Development & Design Blogs