Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get `HTML > Body > Background-Color > Transparent`?

I have this HTML:

<html>
    <head>
    </head>

    <body bgcolor="#FFFFFF" style="margin:0px;padding:0px;">
        <div style="width:100%; color:#000000; padding:25px; font-family: Segoe UI;font-size: 17px;">
        </div>
    </body>
</html>

I have set the background-color with bgcolor="#FFFFFF". But how do I make this transparent?

like image 813
user2056563 Avatar asked Dec 19 '22 15:12

user2056563


1 Answers

HTML provides no means to specify a transparent background (and the means it has to specify backgrounds of any kind are obsolete and should not be used). You can do this in CSS.

body { 
    background-color: transparent;
}

This will make the background of the <html> element visible.

There is no way to make the browser window transparent.

like image 144
Quentin Avatar answered Jan 07 '23 16:01

Quentin