CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>Colors By RGBA Value</title> <style> .color-group{ background: #f4f4fb; display: flex; flex-wrap: wrap; } .single-color{ border-radius: 4px; flex: 40%; display: block; text-align: center; padding-top: 20px; padding-bottom: 20px; margin: 2px; box-sizing: border-box; } .bg-pattern{ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAATklEQVQoU2NkYGAwZmBgOMuAACA+CKCIMSIpADGRNaEYgKwQ3WQUjTCF6CYhWw2WAynEpgjmIpg7jUlSiM0TWK2GWUOUZ7ApxggeogIcABHJFtftKVfJAAAAAElFTkSuQmCC) repeat; } </style> </head> <body> <h2>These are some of Colors By RGBA Values</h2> <div class="color-group bg-pattern"> <div class="single-color" style="background:rgba(255, 0, 0, 0.0);"> rgba(255, 0, 0, 0.0) </div> <div class="single-color" style="background:rgba(255, 0, 0, 0.2);"> rgba(255, 0, 0, 0.2) </div> <div class="single-color" style="background:rgba(255, 0, 0, 0.4);"> rgba(255, 0, 0, 0.4) </div> <div class="single-color" style="background:rgba(255, 0, 0, 0.6);"> rgba(255, 0, 0, 0.6) </div> <div class="single-color" style="background:rgba(255, 0, 0, 0.8);"> rgba(255, 0, 0, 0.8) </div> <div class="single-color" style="background:rgba(255, 0, 0, 1.0);"> rgba(255, 0, 0, 1.0) </div> <div class="single-color" style="background:rgba(0, 255, 0, 0.0);"> rgba(0, 255, 0, 0.0) </div> <div class="single-color" style="background:rgba(0, 255, 0, 0.2);"> rgba(0, 255, 0, 0.2) </div> <div class="single-color" style="background:rgba(0, 255, 0, 0.4);"> rgba(0, 255, 0, 0.4) </div> <div class="single-color" style="background:rgba(0, 255, 0, 0.6);"> rgba(0, 255, 0, 0.6) </div> <div class="single-color" style="background:rgba(0, 255, 0, 0.8);"> rgba(0, 255, 0, 0.8) </div> <div class="single-color" style="background:rgba(0, 255, 0, 1.0);"> rgba(0, 255, 0, 1.0) </div> <div class="single-color" style="background:rgba(0, 0, 255, 0.0);"> rgba(0, 0, 255, 0.0) </div> <div class="single-color" style="background:rgba(0, 0, 255, 0.2);"> rgba(0, 0, 255, 0.2) </div> <div class="single-color" style="background:rgba(0, 0, 255, 0.4);"> rgba(0, 0, 255, 0.4) </div> <div class="single-color" style="background:rgba(0, 0, 255, 0.6);"> rgba(0, 0, 255, 0.6) </div> <div class="single-color" style="background:rgba(0, 0, 255, 0.8);"> rgba(0, 0, 255, 0.8) </div> <div class="single-color" style="background:rgba(0, 0, 255, 1.0);"> rgba(0, 0, 255, 1.0) </div> </div> </body> </html>