I'm not interested in IE compatibility or anything. Just generally speaking how do I make a transparent div with a variable height?

1 answer

2
points
This was chosen as the best answer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <style type="text/css" media="screen">
            #mytransparentdiv
            {
                background: transparent; /*default*/
                border: 1px solid #ccc;
                -webkit-border-radius:16px;
                -moz-border-radius:16px;
                -op-border-radius:16px;
                border-radius:16px;
                width: 200px;
                min-height: 200px
            }
        </style>
    </head>
    <body>
        <div id="mytransparentdiv">

        </div>
    </body>
</html>

will do it. or did you mean opaque?

Answered about 7 years ago by Tony Crockford