I have a layout similar to:
<div>
<table>
</table>
</div>
I would like for the div to only expand to as wide as my table becomes. My CSS:
.content {
text-align: center;
height: auto;
width: auto;
-moz-border-radius:30px;
-webkit-border-radius:30px;
border-radius:30px;
border: #solid 10px #000;
background-color: rgba(105,100,100,0.8);
}
I've tried adding display: inline-block
it works but it sets my table
to the left of the scree, here's the screenshot: image I want it to be centered as well, how do I do that?