My CSS:
<style type="text/css">
body {
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-image: url(images/angel-beats-bg1.jpg);
background-repeat: no-repeat;
margin: auto;
width: auto;
height: auto;
display: table;
text-align:center;
}
.TextBOx {
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
border: #solid 30px #000;
background-color: rgba(105,100,100,0.8);
width:auto;
height:auto;
margin: 0;
display:block;
}
</style>
Let this picture explains everything:
I want the border of that semi transparent textbox to autofit with that content. How do I do that ? I've tried position:fixed;
but instead it screws up my page.
My complete script:
<style type="text/css">
body {
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-image: url(images/angel-beats-bg1.jpg);
background-repeat: no-repeat;
margin: auto;
width: auto;
height: auto;
display: table;
text-align:center;
}
.TextBox {
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
border: #solid 30px #000;
background-color: rgba(105,100,100,0.8);
width:auto;
height:auto;
margin: 0;
z-index:-1;
display:block;
text-align:center;
position:relative;
}
</style>
<body>
<img src="images/header.png" alt="OpenWrt Gratisan"><br>
<strong>
<p>
<a href="status.php" title=""><font color="red">Status</font></a> |
<a href="wget.php" title=""><font color="red">Wget WebUI</font></a> |
<a href="putty.html" title=""><font color="red">Terminal</font></a> |
<a href="wifi.php" title=""><font color="red">WIFI</font></a> |
<a href="ch_pass.php" title=""><font color="red">Password</font></a> |
<a href="profile.php" title=""><font color="red">Profile</font></a> |
<a href="vpn.php" title=""><font color="red">Accounts</font></a> |
<a href="ussd.php" title=""><font color="red">USSD</font></a> |
<a href="sms_in.php" title=""><font color="red">Inbox SMS</font></a> |
<a href="sms_send.php" title=""><font color="red">Send SMS</font></a> |
</p>
<p>
<a href="vpn_log.php" title=""><font color="red">VPN log</font></a> |
<a href="restart_log.php" title=""><font color="red">Restart Log</font></a> |
<a href="wget_log.php" title=""><font color="red">Wget Log</font></a> |
<a href="dial_log.php" title=""><font color="red">Dial Log</font></a> |
<a href="about.php" title=""><font color="red">About</font></a>
</p>
</font></strong>
<br><br><br>
<div class="TextBox">';
MY CONTENT GOES HERE
</div>
.....