html 盒子里的表格?

html form inside a box?

我想将表单放入框内,或者在表单周围添加边框,但我遇到了困难。背景必须是白色的,我在想也许一个透明的选项是可以的。那里的任何专家有一些简单的想法如何解决它? 附上一些代码。 Jsfiddle

What I want to accomplish

<body>
<div id="border"></div>
<div id="text">Auf dem tisch</div>
</body>

body {background: white;}

#border {
        border: 2px solid black;
        position: absolute;
        z-index: 1;
        width: 100px;
        height: 80px;
        margin-center: 0;
        padding: 15px;
        border-radius: 1px;
        background: navy;
        opacity: 0.2;
    }

#text   {
        margin-center: 0;
        z-index: 2;
        color: black;
        font-weight: bold;
    }
    <div class="box">
<form>
..
..
</form>
</div>

// css style to make border in center of the form

.box{
margin:0 auto; 
width:600px //you can set it in %.
padding:20px;
background:#f9f9f9;
border:2px solid #333;
}