I'm trying to vertically, and horizontally align a table into a div, with the div slightly bigger than the table, thus giving me a border. I know i could always just "padding:5pt" but i don't want that.
I have it aligned horizontally, but i cannot find how to align vertically correctly.
is my code for the div.
I have looked around on the net, but i cannot find anything so far that works cross browser.
Can anyone help me on this topic?
I have it aligned horizontally, but i cannot find how to align vertically correctly.
Code:
div.gbg
{
background-color: #393939;
height: 495px;
width: 790px;
margin: 0 auto;
text-align: center;
margin-top: 50px;
}
is my code for the div.
I have looked around on the net, but i cannot find anything so far that works cross browser.
Can anyone help me on this topic?