Search code examples
htmlcssbackgroundtransparentworkspace

I want to make a transparent window with css


I know that is possible to make a div with transparent background. But I haven't how to do a body with transparent background, because its background stay white.

<html>
    <head>
        <meta charset='UTF-8'>
        <link rel='stylesheet' href='css.css'>
    </head>
    <body>
        <div style='background:transparent'></div>
    </body>
</html>

I want to know if exist some way to makes body really transparent (showing my workspace).


Solution

  • You can't make <body> tag transparent, Because there should be a default or a base color to use it as a transparent color. So as a verdict you make <body> tag confused, Like he says whats my transparent color to use it? if there's not browser uses default color. and i guess this post is duplicate. HTML body bgcolor transparent