I saw this asked a few times but all of the answers messed up my height.
    #transbox {
            position: fixed;
            top: 150px;
            right: 320px;
            width: 600px;
            height: 210px;
            background-color: #fff;
            border: 1px solid #000;
            opacity: 0.7;
            filter: alpha(opacity=60); 
            }
<div id="transbox">
<div id="title">navigation</div>
    <div id="navigation">
        <table style="width:100%">
            <tr>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
            </tr>
            <tr>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
            </tr>
            <tr>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
                <td><a href="/">link</a></td>
            </tr>
        </table>
    </div>
</div>    
That is a div and it's CSS and I want to make it so that the height is the same as the content inside it so if I have a specific height (like I do at the moment) it will limit it but all the answers I have seen for centering horizontally and vertically even on page resize rely on a specific height
Thanks
 
     
     
    