Home
CSS
CSS Color Keywords
Tryit: Using the transparent keyword
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> body { background-image: url("paper.gif"); } div.ex1 { background-color: lightgreen; border: 2px solid black; padding: 15px; } div.ex2 { background-color: transparent; border: 2px solid black; padding: 15px; } </style> </head> <body> <h2>The transparent Keyword</h2> <div class="ex1">This div has a light green background.</div> <br> <div class="ex2">This div has a transparent background.</div> </body> </html>