HTML CSS examples for CSS Widget:Color
Create a small color box using html and css
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .foo {<!--from w w w . j a v a 2 s.c o m--> float: left; width: 20px; height: 20px; margin: 5px; border: 1px solid rgba(0, 0, 0, .2); } .blue { background: #13b4ff; } .purple { background: #ab3fdd; } .wine { background: #ae163e; } </style> </head> <body> <div class="foo blue"></div> <div class="foo purple"></div> <div class="foo wine"></div> </body> </html>